When the spring MVC project is running on idea, an error is reported when the controller is a null pointer

Error message:

error type display. A null pointer is displayed for a certain line of the controller class. Many blogs are queried later. After a try, the @ Autowired interface is added to successfully display

Read More: