Start the spring boot project locally, the configuration information is as follows
Entering localhost:8082/v1 in Google browser will display the following data
All interface addresses in the project will be displayed.
Why is this and how does this happen???
大家讲道理2017-05-17 10:08:35
I found the problem because I added a spring-boot-starter-data-rest dependency
Just remove this dependency.
为情所困2017-05-17 10:08:35
Personal feeling, don’t complain if it’s wrong
If you are using idea, you can put a breakpoint in DispatcherServlet, either doService or doDispatch.
Then you can see the internal properties of DispatcherServlet. Personally, I feel that it is in the handlerMappings property. There are definitions. In this pile of things, you can find the uri that spring handles for you
After that, it’s up to you how to look at it