springboot 访问接口报错 This application has no explicit mapping for /error

解决方法:

把类名上的 @Controller 改为 @RestController。

参考: https://blog.csdn.net/liupeifeng3514/article/details/79525347  这一页的评论

猜你喜欢

转载自blog.csdn.net/beguile/article/details/88951946