SpringBoot启动常见错误总结

1、没有在程序启动时加上@MapperScan映射扫描

在这里插入图片描述

2、Spring-tx依赖发生冲突或没有导入

在这里插入图片描述

3、如果是模块化项目需要在web模块的springboot项目启动中取消自动配置DataSource

在这里插入图片描述
设置@SpringBootApplication(exclude=DataSourceAutoConfiguration.class)

发布了12 篇原创文章 · 获赞 10 · 访问量 421

猜你喜欢

转载自blog.csdn.net/weixin_43193358/article/details/105608259