报错信息:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [v2/api-docs], template might not exist or might not be accessible by any of the configured Template Resolvers
报错原因:
1、在controller控制器无返回方法上添加 @ApiImplicitParams()/ @ApiImplicitParam注解;
2、在controller控制器有返回方法上添加 @ApiImplicitParams()/ @ApiImplicitParam注解,未加@ResponseBody 注解
解决方法:
1、将无返回方法上的 @ApiImplicitParams()/ @ApiImplicitParam注解去掉
2、在有返回方法上添加@ResponseBody 注解 或控制器使用 @RestController 注解