spring boot成功启动后访问报错404的问题

自己写了一个spring boot的hello world 项目  访问的时候报错

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Wed Dec 14 16:35:25 CST 2016
There was an unexpected error (type=Not Found, status=404).
No message available

原因是【Application启动类放的位置不对】要将Application放在最外层,也就是要包含所有子包。


猜你喜欢

转载自blog.csdn.net/chenyao1994/article/details/80664364
今日推荐