I tried to deploy the application on Heroku, but after connecting ClearDB mySQL I get an error 500.
heroku logs:
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
Problem solved by changing the folder structure:
src/main/resources/Templates -> src/main/resources/templates
PS: Folder names must be strictly followed for Heroku in this case.