spring boot + mybatis plus生成了一个controller,返回数据正常,但报错Error resolving template [xx/xx/xxxx], template might not exist or might not be accessible by any of the configured Template Resolvers

解决:
将@Controller换成@RestController即可,返回json。
道法自然

解决:
将@Controller换成@RestController即可,返回json。