在IDEA中写dao层测试类时使用@Autowired注解出现错误。解决方法:file->settings->Editor->Inspections->Spring->SpringCore->Code->AutowiringforBeanClass把右边的Severity的error值改为warning
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号