IDEA 使用@Autowired注解报错 解决办法: Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class (把√去掉)。