码迷,mamicode.com
首页 > 编程语言 > 详细

springboot运行时该注意的地方

时间:2019-02-24 18:59:44      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:for   style   was   cte   访问   message   ring   span   ted   

1、SpringBoot的入口类一定要放在所有类的上一层,也就是要包含所有子包中的类

springBoot在启动时才会加载所有子包中的所有组件

否则会出现启动成功但是访问不到的情况:

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

springboot运行时该注意的地方

标签:for   style   was   cte   访问   message   ring   span   ted   

原文地址:https://www.cnblogs.com/yhm9/p/10427141.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!