2021-07-10

[1] IDEA Cannot resolve MVC view 'userInfo' error solution

In the springboot project, an error was reported when returning to the HTML interface under the templates directory, which has been resolved.

insert image description here

Solution: add thymeleaf dependency in pom.xml file.

insert image description here
The following is 代码, the version can be adjusted by yourself.

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
            <version>2.5.0</version>
</dependency>

Then it can be parsed, press the ctrl key and click to jump to the corresponding page.

insert image description here

Guess you like

Origin blog.csdn.net/qq_44847590/article/details/118642802