前提:

  • 全默认配置
  • spring-boot版本是2.2.4.RELEASE

  按照教程最简思路,整合freemarker却无法通过前端访问,下载教程demo启动却可以,显示进行配置也行,为啥??

 

 

 

   搜了下发现是spring-boot的默认配置问题,若2.0+(具体版本不知),后缀名需要显示配置:

   spring.freemarker.suffix=.ftl

spring-boot + freemarker 默认配置下无法访问模板

 

  资料:

  https://cloud.tencent.com/developer/article/1582377

  https://www.cnblogs.com/silvestris/p/12037704.html

相关文章:

  • 2021-11-01
  • 2021-11-20
  • 2021-08-18
  • 2021-08-15
  • 2021-05-22
  • 2022-12-23
  • 2021-08-11
  • 2021-05-19
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2021-07-14
  • 2022-12-23
  • 2022-01-07
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案