
springboot
快乐肥宅mxy
这个作者很懒,什么都没留下…
展开
-
springboot使用@PostMapping方法访问url,报405错误,not support ‘GET‘ method
地址栏输入链接默认都是Get方式,将@PostMapping改为@RequestMapping就可以了原创 2022-04-24 00:50:13 · 2160 阅读 · 0 评论 -
IntelliJ Idea解决Could not autowire. No beans of ‘xxxx‘ type found
在DAO层加上@Respository原创 2022-04-20 17:23:13 · 427 阅读 · 0 评论 -
Springboot项目启动报错Error starting ApplicationContext
解决方法:在主启动类的@SpringBootApplication后加上(exclude = {DataSourceAutoConfiguration.class})排除此类的autoconfig@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})就可以成功启动了~原创 2022-04-20 01:18:31 · 426 阅读 · 2 评论 -
Idea Configurations显示红叉,can‘t find “xxx“ in module
解决方法:删除启动类中的“import org.springframework.boot.autoconfigure.SpringBootApplication;”再重新导入。过一会就会看到红叉消失了。原创 2022-04-19 22:57:59 · 899 阅读 · 0 评论 -
pom文件的 spring-boot-maven-plugin显示红色
解决办法:加上和springboot相同的版本号即可ps:之前试过了清除缓存和添加任意版本号,发现只有版本号一致才有用原创 2022-03-12 16:38:16 · 761 阅读 · 0 评论 -
<已解决>spring-boot-starter-parent依赖版本错误
问题:在学习springboot框架的时候发现 pom.xml文件中引入的parent依赖spring-boot-starter-parent版本号显示红色解决方法:File -> Invalidate Caches / Restart… -> Invalidate and Restart。之后重新启动spring很神奇的就不红了。应该是相当于IDEA清除缓存。...原创 2022-03-07 22:39:49 · 3762 阅读 · 2 评论