The solution of using Autowired annotation to report errors in IntelliJ idea The error should be a warning