方案一:
File – Settings – Inspections。在Spring Core – Autowring for Bean Class 中,
将Severity的级别由之前的error改成warning。
方案二:
在dao层虽然加了@Mapper注解,但再补上@Repository,立马看到@Autowired自动注入的属性没有报错。
疑问:方案二为什么可以解决该报错问题呢?
方案一:
File – Settings – Inspections。在Spring Core – Autowring for Bean Class 中,
将Severity的级别由之前的error改成warning。
方案二:
在dao层虽然加了@Mapper注解,但再补上@Repository,立马看到@Autowired自动注入的属性没有报错。
疑问:方案二为什么可以解决该报错问题呢?