Problem: error resolving template [index], template may not exist
Solution:
1. Check the project structure first and check whether the location of the static resource file is misplaced
2. Check if the thymeleaf dependency in pom.xml is imported correctly
At first, I only imported the following dependencies, but it reported an error
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
3. Change to the following, just download it again
<!-- thymeleaf -->
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring5</artifactId>
</dependency>
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-java8time</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
Read More:
- [Solved] Error resolving template template might not exist or might not be accessible
- [Solved] Error resolving template [x] template might not exist or might not be accessible by any of the con
- org.thymeleaf.exceptions.TemplateInputException: Error resolving template [hello scope], template mi
- How to Solve JAR pack error: Error resolving template [/userInfo], template might not exist or might not be accessib
- [Solved] org.thymeleaf.exceptions.TemplateInputException: Error resolving template
- Springboot thymeleaf Error: Exception processing template “table/dynamic_table”: Error resolving template [common]…
- [Solved] org.thymeleaf.exceptions.TemplateInputException: Error resolving template
- MDK keil template annotation template
- How to Solve Springboot use thymeleaf template error
- thymeleaf Error: An error happened during template parsing Cannot render error page for request
- [Solved] activiti integrate error: GlobalAuthenticationConfigurerAdapter.class does not exist
- [Solved] Error: (4, 52) Java: package org springframework. beans. factory. Annotation does not exist
- [Solved] Error:(3, 46) java: Program Package org.springframework.context.annotation does not exist
- [Solved] spring source code compile error: target package does not exist
- IDEA Error: lombok.extern.slf4j is not exist [How to Solve]
- [Solved] IDEA Add maven Project Error: Error:(3,21)java: Package javax.servletdoes not exist
- JAVA Error: package org.apache.commons.codec.binary does not exist
- [Solved] Error: (3, 31) Java: package jdk.nashorn.internal.ir does not exist
- org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying XXX
- Maven error: package org.springframework.context does not exist