SpringBoot跳转HTML问题汇总(IntelliJ IDEA)

web-error:
SpringBoot跳转HTML问题汇总(IntelliJ IDEA)_第1张图片


web-html5:
 
  

Controller.java


web-html5:
 
  
SpringBoot跳转HTML问题汇总(IntelliJ IDEA)_第2张图片
 
  
处理步骤:
1、POM.XML(确保必有
<dependency>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-starter-thymeleafartifactId>
dependency>
2、application.properties
spring.thymeleaf.prefix=classpath:/templates/
3、h5页面加个后缀即可,原来问题出在这里(够费劲的找个error)

你可能感兴趣的:(SpringBoot)