1. 异常错误描述:
错误原因:类 DynamicResponseModelReader 因为没有无参构造方法所以没有被注入
2. 解决方案:
解决思路:这里,我们只需要检查我们的配置类中是否添加了 @EnableSwagger2WebMvc 注解,或者检查是否添加了 @ComponentScan({"springfox.documentation.schema"}
1. 异常错误描述:
错误原因:类 DynamicResponseModelReader 因为没有无参构造方法所以没有被注入
2. 解决方案:
解决思路:这里,我们只需要检查我们的配置类中是否添加了 @EnableSwagger2WebMvc 注解,或者检查是否添加了 @ComponentScan({"springfox.documentation.schema"}