Is there a way to retrieve information about spring mappings defined by @Controller?

后端 未结 2 1550
误落风尘
误落风尘 2021-02-06 07:47

I\'d like to be able to create a page that lists off the mappings that were discovered by controllers annotated with @Controller. I\'m doing this for REST services

2条回答
  •  無奈伤痛
    2021-02-06 08:07

    With Spring 3.1, there is a new feature referred to as "end point documentation". The only thing I could find was some code in the spring-mvc-31-demo sample app. Refer to the example controller and JSP. Seems pretty straight forward.

提交回复
热议问题