java - Spring boot project can directly display all interface addresses and data information through ip+port+contentPath. Why is this???
世界只因有你
世界只因有你 2017-05-17 10:06:35
0
2
827

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???

世界只因有你
世界只因有你

reply all(2)
大家讲道理

I found the problem because I added a spring-boot-starter-data-rest dependency

Just remove this dependency.

为情所困

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template