首页 > 解决方案 > 构建 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"
}

任何人都知道我必须做什么,以便可以在此图像上添加我的资源文件夹?!

标签: spring-bootcloudthymeleafdocker-image

解决方案


推荐阅读