Today do springboot small example, in the request controller layer when the following problems occur.
Whitelabel Error Page
This application have no explicit mapping for/error, so is seeing this as a fallback.
Wed Dec 16:35:25 CST 2016There is an unexpected error (Type=not Found, status=404). No message Available
The problem is like no access to the wrong address, the first feeling that the URL is not written.
Not really, the real reason is "the application start class put the wrong place" to put application on the outermost layer, that is, to include all the child packages.
For example your groupid is com.google, the child package is called com.google.xxx, so the application class to be placed under the Com.google package.
Springboot will automatically load all the components under the package that the startup class is under and its child packages.
Springboot Start Error "This application have no explicit mapping for/error ..."