报错:
There was an unexpected error (type=Not Found, status=404)
问题:
springboot项目启动,访问接口报错,可能时类没有被扫描到
解决方法:
在application类中添加包扫描,代码如下:
@ComponentScan("com.example.*")

报错:
There was an unexpected error (type=Not Found, status=404)
问题:
springboot项目启动,访问接口报错,可能时类没有被扫描到
解决方法:
在application类中添加包扫描,代码如下:
@ComponentScan("com.example.*")