spring-boot - 构建 Spring Boot OCI + Thymeleaf
问题描述
我正在努力。基于 Spring Repository 创建一个授权服务器
我对登录页面的 HTML 自定义工作正常,但是当我运行它的 docker 映像时,控制台会显示以下消息:
Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
当我访问该服务时,它会返回:
{
"timestamp": "2021-09-24T14:51:11.632+00:00",
"status": 500,
"error": "Internal Server Error",
"path": "/login"
}
任何人都知道我必须做什么,以便可以在此图像上添加我的资源文件夹?!
解决方案
推荐阅读
- c# - 使用 Dax 查询:'(' 的语法不正确
- wordpress - 如何在 Wordpress 网站页面上修复此 404 错误?
- kotlin - 在kotlin中获取空指针异常
- sql - Hive: java.lang.OutOfMemoryError: Java heap space and Job running in-process (local Hadoop)
- nginx - 使用 NGINX (Docker) 将 /api 请求重定向到端口 3000
- javascript - 使用 Watir 从 Angular 非传统下拉菜单中进行选择
- excel - 我们可以计算我们在编码经典asp中上传到网页上的工作簿中工作表的最后一行吗
- go-git - 如何解决提交到分支?
- angular - Angular 8 拒绝加载加载图像,因为它违反了以下内容安全策略指令
- nlp - 什么是 LUIS“语音请求”?