![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
张先森啊
计算机专业
展开
-
springboot no mapping for.....解决办法
这个问题是由于没有加入对应的GET,POST注解,导致映射失败,加入对应注解就ok了。原创 2024-04-21 19:40:24 · 852 阅读 · 0 评论 -
Consider defining a bean of type ‘com.sky.service.DishService‘ in your configuration.怎么解决
这个问题通常是因为Spring Boot无法找到你指定的bean。在你的代码中,你已经定义了一个名为。的类,但是Spring可能在寻找一个名为。这样,Spring Boot就能找到。包下创建一个新的Java接口文件。原创 2024-04-21 11:03:11 · 482 阅读 · 0 评论