I have checked the title error for a long time in the afternoon, and there are various opinions on the Internet.
Later, it was found that the path of ModelAndView was wrong.
The correct path should be:
import org.springframework.web.servlet.ModelAndView;
Close-up notes, commemorating the mistake