Hello World

Just So So ...

首页

SpringBoot 开发前后端在一起模板报错template might not exist or might not be accessible by any of the configured

  • 作者: admin
  • 时间: 2022-04-02
  • 分类: Code

Spring Boot+thymeleaf的项目里项目本地运行没问题,jar包就报错,模版文件不存在
解决方案
我们只需要在引用模板文件的时候不用”/”打头就可以了,通过类似相对路径的方式来引用,但是需要说明的是,这里的相对路径仍然是相对于模板根目录来做的。

标签: Java

评论已关闭

  • 上一篇: SQL Server 查询 Row_Number() OVER去重
  • 下一篇: mysql 快速导入大sql文件

最新文章

  • mysql 快速导入大sql文件
  • SpringBoot 开发前后端在一起模板报错template might not exist or might not be accessible by any of the configured
  • SQL Server 查询 Row_Number() OVER去重
  • python list.index()用法
  • centos7利用yum安装lnmp的教程(linux+nginx+php7.1+mysql5.7)
  • Typecho Nginx下的伪静态rewrite规则
  • 关于typecho使用cloudflare后台进不去的问题
  • BBR加速 Centos
  • Navicat 连接MAMP中的mysql
  • docker desktop 命令

分类

  • Code
  • 互联网
  • PM
© 2025 Hello World. 由 Typecho 强力驱动.