SptingBoot+Mybatis开发通常在dao层的注解是@Mapper

这样每次在ServiceImpl层加注解@Autowired时,注入的dao总是波浪线烦人,其实并没有错,只是idea你太严格了

强迫症可能就是要解除掉这个红波浪线

步骤:

File-Settings-Editor-Inspectiopns

右侧找到Spring-Spring Core-Code-Autowiring for Bean Class

右侧的Severity级别显示Error调整到你想要的级别即可

相关文章:

  • 2021-05-10
  • 2021-07-17
  • 2021-07-06
  • 2021-08-27
  • 2021-05-19
猜你喜欢
  • 2021-10-09
  • 2021-08-16
  • 2022-01-27
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
相关资源
相似解决方案