STS(Spring Tools Suite)2.7.2 @RequestMappings视图不显示

Luc*_*ure 5 user-interface controller spring-mvc

目前使用:

Spring Tools Suite v2.7.2

Spring Framework v3.0.5

控制器中的示例代码:

@RequestMapping( value={ "/en/page", "/fr/page" }, method = { RequestMethod.POST })
Run Code Online (Sandbox Code Playgroud)

在STS中重现问题的步骤:

  • [Menu] Window - > Show View - > @RequestMappings

  • [项目]右键单击 - >弹簧工具 - >显示RequestMappings

返回:

Javadoc内容缺失或为空

题:

如何填充所有@RequestMappings以查看在我的Web应用程序中映射的所有网址?

Luc*_*ure 5

要解决,您必须:

  • 右键单击您的项目
  • 弹簧工具
  • 添加Roo Project Nature

然后:

  • 右键单击您的项目
  • 弹簧工具
  • 显示@RequestMappings

似乎代码必须在映射可以在IDE中输出之前编译,

干杯.