错误:template might not exist or might not be accessible by any of the configured Template Resolvers
描述:在controller层添加新方法,没有返回值,导致测试访问该方法时,thymeleaf出错。
解决:使用了thymeleaf设置规则,调用方法之后要将页面作为返回值或者返回数据给前端页面。
错误:template might not exist or might not be accessible by any of the configured Template Resolvers
描述:在controller层添加新方法,没有返回值,导致测试访问该方法时,thymeleaf出错。
解决:使用了thymeleaf设置规则,调用方法之后要将页面作为返回值或者返回数据给前端页面。