This error did not appear when I was running in idea, but it appeared after I typed the project into a jar package and executed the jar package. This error means that the template page cannot be found, but the template page actually exists in my project. The solution to this error is to skip the template page in the controller without starting with “/”.
Example
@Controller
public class userController {
@Autowired
private userServiceImpl userService;
@RequestMapping("/userInfo/{nickname}")
public Object showBlog(@PathVariable("nickname") String nickname,
Model model, HttpServletRequest request){
User userInfo = userService.getUserInfo(nickname);
model.addAttribute("userInfo",userInfo);
return "userInfo";
}
}
Read More:
- [Solved] Error resolving template [x] template might not exist or might not be accessible by any of the con
- [Solved] Error resolving template template might not exist or might not be accessible
- Error resolving template [index], template might not exist
- org.thymeleaf.exceptions.TemplateInputException: Error resolving template [hello scope], template mi
- Springboot thymeleaf Error: Exception processing template “table/dynamic_table”: Error resolving template [common]…
- [Solved] org.thymeleaf.exceptions.TemplateInputException: Error resolving template
- [Solved] org.thymeleaf.exceptions.TemplateInputException: Error resolving template
- How to Solve Springboot use thymeleaf template error
- MDK keil template annotation template
- How to Solve Tomcat Error: Could not resolve view with name ‘xxx/xxxxxxx‘ in servlet with
- [Solved] IDEA Error(15, 16) java Program Pack sun.misc does not exsit or import sun.misc.BASE64Decoder Cannot find
- [Javac compilation exception] javac compilation prompts that the package in jdk cannot be found error: package jdk.internal.org.objectweb.asm does not exist and error: cannot find symbol
- OTA Pack Compile Error: ExternalError: Failed to run signapk.jar: return code 1:Error: A JNI error has occurred
- How to Solve Flick operate Error: not serialized
- How to Solve IntelliJ IDEA Error: Cannot determine path to ‘tools.jar‘ library for 17 (C:\Program Files\Java\jd…
- thymeleaf Error: An error happened during template parsing Cannot render error page for request
- [Solved] activiti integrate error: GlobalAuthenticationConfigurerAdapter.class does not exist
- [Solved] “status“:405,“error“ Request method ‘POST‘ not supported“
- How to Solve Error: Invalid bound statement (not found)
- Monitoring session to determine whether the user is online or not