web-error:
SpringBoot跳转HTML问题汇总(IntelliJ IDEA)


web-html5:


Controller.java


web-html5:

<!--IDEA后缀问题,-->
SpringBoot跳转HTML问题汇总(IntelliJ 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)

相关文章:

  • 2022-12-23
  • 2021-11-05
  • 2021-07-24
  • 2022-01-08
  • 2022-01-03
  • 2022-01-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-12-08
  • 2021-05-17
  • 2021-10-26
相关资源
相似解决方案