springboot异常This application has no explicit mapping for /error, so you are seeing this as a fallbac

Application启动类的位置不对.要将Application类放在最外侧,即包含所有子包 
原因:spring-boot会自动加载启动类所在包下及其子包下的所有组件.

springboot异常This application has no explicit mapping for /error, so you are seeing this as a fallbac_第1张图片

你可能感兴趣的:(springboot)