Spring mvc JSR Portlet resourcemapping注释不工作

Spring mvc JSR Portlet resourcemapping注释不工作,spring-mvc,portlet,jsr286,Spring Mvc,Portlet,Jsr286,我正试图用springMVC开发一个JSR286 portlet,我的问题是当我将portlet:resourceURL添加到jsp页面时,该页面在门户中显示为空白,但这个问题不会发生在任何其他注释(如actionURL等)中 JSP页面: <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> <portlet:resourceURL var="

我正试图用springMVC开发一个JSR286 portlet,我的问题是当我将portlet:resourceURL添加到jsp页面时,该页面在门户中显示为空白,但这个问题不会发生在任何其他注释(如actionURL等)中

JSP页面:

<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<portlet:resourceURL var="testURL" id="test"/>
有没有关于如何解决这个问题的想法

@ResourceMapping("test")
public String sampleTest(Model model, ResourceRequest request,
          ResourceResponse response,
          @ModelAttribute("salaryModel") SalaryModel salaryModel,
          ModelMap modelMap) throws IOException {
                   model.addAttribute("salaryModel", updatedSalaryModel);
                   return "salaryDetails";
}