SpringBoot跳转HTML问题汇总(IntelliJ IDEA)
web-error:
web-html5:
Controller.java
web-html5:
<!--IDEA后缀问题,-->
处理步骤:
1、POM.XML(确保必有)
<!---模板引擎:网页路径渲染(MAVEN加入即可)-->
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
2、application.properties
<!--(前后缀路径拼接)-->
spring.thymeleaf.prefix=classpath:/templates/
3、h5页面加个后缀即可,原来问题出在这里(够费劲的找个error)