我遇到的问题:Error resolving template template might not exist or might not be accessible
解决方法:(可能不一定所有地方都有用,先记录一下)
@RequestMapping({"/","/index"})
修改为
@RequestMapping({"",“index”})
本文解决了一个在SpringMVC框架中常见的问题:模板解析错误。通过将@RequestMapping注解中的路径从//index修改为index,成功地解决了模板可能不存在或无法访问的问题。
我遇到的问题:Error resolving template template might not exist or might not be accessible
解决方法:(可能不一定所有地方都有用,先记录一下)
@RequestMapping({"/","/index"})
修改为
@RequestMapping({"",“index”})
1万+
1684
1417
826
4084
3万+
766

被折叠的 条评论
为什么被折叠?