
java
背影_LEI
这个作者很懒,什么都没留下…
展开
-
Could not autowire. No beans of ‘xxxMapper‘ type found
SpingBoot项目Mapper层注解使用@Mapper时,在Service层引入Mapper的时候会爆红线 虽然不影响项目正常启动和启动,但是有一条红线看着非常的不爽。 网上的方法有很多 比如:将@Autowired修改成@Resource,降低@Autowired的检测级别 看着就非常的奇怪,所以我觉得最简单粗暴的方法还是让红线消失 解决方法 打开idea File>settings>Editor>Inspections>Spring>Spring Code>Co原创 2021-04-06 18:16:36 · 151 阅读 · 0 评论 -
记录个人在IDEA中单元测试@Test无法使用的解决方案
记录个人在IDEA中单元测试@Test无法使用的解决方案 <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> 当你删除了pom文件的“scope”标签还是无法使用@Test注解的时候,可以参考我原创 2020-09-18 16:35:13 · 1072 阅读 · 1 评论