报错: There was an unexpected error (type=Not Found, status=404) 问题: springboot项目启动,访问接口报错,可能时类没有被扫描到 解决方法: 在application类中添加包扫描,代码如下: @ComponentScan("com.example.*") 最后修改:2021 年 10 月 18 日 © 允许规范转载 赞 0 如果觉得我的文章对你有用,请随意赞赏