Java InteliJ和Maven没有解决Thymeleaf依赖关系
我正在使用::Spring Boot(v2.0.2.RELEASE) Java版本是1.8.0_162 虽然我试图在Maven inteliJ中添加对Thymeleaf模板的依赖性,但并没有解决它,而我采取了一些课程,我也采用了完全相同的方法,并且有效果Java InteliJ和Maven没有解决Thymeleaf依赖关系,java,spring,spring-mvc,spring-boot,thymeleaf,Java,Spring,Spring Mvc,Spring Boot,Thymeleaf,我正在使用::Spring Boot(v2.0.2.RELEASE) Java版本是1.8.0_162 虽然我试图在Maven inteliJ中添加对Thymeleaf模板的依赖性,但并没有解决它,而我采取了一些课程,我也采用了完全相同的方法,并且有效果 <dependency> <groupId>org.springframework.boot</groupId> <artifactId&
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
org.springframework.boot
弹簧启动装置
它不会在静态文件夹下解析和创建模板
感谢
应用程序中的。应用程序的属性文件添加:
spring.thymeleaf.mode=LEGACYHTML5
在pom.xml中,为nekohtml添加如下依赖项
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>1.9.22</version>
</dependency>
net.sourceforge.nekohtml
内科特米尔
1.9.22
是否已检查Maven自动导入是否已打开?显示您的mvn干净安装-X-e
日志。