SptingBoot+Mybatis开发通常在dao层的注解是@Mapper
这样每次在ServiceImpl层加注解@Autowired时,注入的dao总是波浪线烦人,其实并没有错,只是idea你太严格了
强迫症可能就是要解除掉这个红波浪线
步骤:
File-Settings-Editor-Inspectiopns
右侧找到Spring-Spring Core-Code-Autowiring for Bean Class
右侧的Severity级别显示Error调整到你想要的级别即可
SptingBoot+Mybatis开发通常在dao层的注解是@Mapper
这样每次在ServiceImpl层加注解@Autowired时,注入的dao总是波浪线烦人,其实并没有错,只是idea你太严格了
强迫症可能就是要解除掉这个红波浪线
步骤:
File-Settings-Editor-Inspectiopns
右侧找到Spring-Spring Core-Code-Autowiring for Bean Class
右侧的Severity级别显示Error调整到你想要的级别即可
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。