项目中访问测试restful,http://localhost:8080/nes4/test出现如下错误
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
如图
解决:发现是springboot 注解未将controller扫描,添加扫描如下
再次启动springboot,测试http://127.0.0.1:8080/test ,成功