Spring Boot + ClearDB mySQL App部署Heroku问题
Spring Boot + ClearDB mySQL App deploy Heroku problem
我尝试在 Heroku 上部署应用程序,但是在 连接 ClearDB mySQL 之后,我收到错误 500。
heroku 日志:
2022-01-18 18:09:20.331 ERROR 4 --- [io-57013-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template [home], template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause
2022-01-18T18:09:20.332252+00:00 app[web.1]:
2022-01-18T18:09:20.332253+00:00 app[web.1]: org.thymeleaf.exceptions.TemplateInputException: Error resolving template [home], template might not exist or might not be accessible by any of the configured Template Resolvers
通过更改文件夹结构解决的问题:
src/main/resources/模板 -> src/main/resources/模板
PS:
在这种情况下,Heroku 必须严格遵循文件夹名称。
我尝试在 Heroku 上部署应用程序,但是在 连接 ClearDB mySQL 之后,我收到错误 500。
heroku 日志:
2022-01-18 18:09:20.331 ERROR 4 --- [io-57013-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template [home], template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause
2022-01-18T18:09:20.332252+00:00 app[web.1]:
2022-01-18T18:09:20.332253+00:00 app[web.1]: org.thymeleaf.exceptions.TemplateInputException: Error resolving template [home], template might not exist or might not be accessible by any of the configured Template Resolvers
通过更改文件夹结构解决的问题:
src/main/resources/模板 -> src/main/resources/模板
PS: 在这种情况下,Heroku 必须严格遵循文件夹名称。