You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for bugs:
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template [layouts/default], template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [layouts/default], template might not exist or might not be accessible by any of the configured Template Resolvers
Try giving full path of layouts/default template. Hope you would have a class for webconfig with WebMvcConfigurer, ApplicationContextAware interface implementation. There in SpringTemplateEngine set full path in AbstractConfigurationTemplateResolver instead of giving from web-inf.
Version: spring-boot-starter-thymeleaf 2.0.9.RELEASE
for bugs:
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template [layouts/default], template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [layouts/default], template might not exist or might not be accessible by any of the configured Template Resolvers
sample:
@RequestMapping({"news/{newsId}"})
public String news(Model model,
@RequestHeader(name = "name", required = false) String name,
@PathVariable("newsId") long newsId) {
logger.info("{} read news {}", name, newsId);
The text was updated successfully, but these errors were encountered: