Error resolving template [index], template might not exist or might not be accessible by any of the configured Template Resolvers
Error parsing template [index], template may not exist or may not be accessible by any configured template parsers
The problem here is that the index is not found, I checked it, and the path of the index is wrong
@Controller
public class shrioController {
@RequestMapping({"/","/index"})
public String toIndex(Model model){
model.addAttribute("msg","hello,Shiro");
return "index";
}
}
The index path here should be “/templates/index”
Similar Posts:
- [Solved] Error resolving template “XXX”, template might not exist or might not be accessible by any of the
- [Solved] Sping controller Receives list entity parameter Error: nested exception is java.lang.IndexOutOfBoundsException: Index: 256, Size: 256
- This application has no explicit mapping for /error, so you are seeing this as a fallback
- [Solved] Exception processing template “login/login”: Error resolving template
- Solve the problem of “typeerror: ‘bool’ object is not callable” in flash and Django
- [Solved] Cannot deserialize instance of `java.lang.String` out of START_OBJECT token
- Springboot + Maven multi module project startup Error: XxxService cannot be found
- Java error: No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Thinkphp6 Error: constraint violation: 1052 Column ‘id’ in where clause is ambiguous
- SpringBoot+Mybatis-plus multi-module project startup Error: xxxmapper or basemapper cannot be found