作为一个新手小菜年,在使用工具时难免会遇到各种各样的问题,在使用springboot集成swagger的代码测试中,我遇到了如下错误,方便以后查看
错误如下:
在代码跑的时候报了这个错“To display the conditions report re-run you application with 'debug' enabled.”
这句话翻译成中文意思为:“要显示条件报告,请在启用“调试”的情况下重新运行应用程序。”
后来查看许多大佬的文章,总结出以下解决方案。:
解决方案
出现问题可能是因为版本配置文件的问题(2.9.x),在application.properties配置文件中进行一些配置,代码如下:
springfox.documentation.enabled=true
swagger.title=spring-boot-starter-swagger
swagger.description=Starter for swagger 2.x
swagger.version=1.4.0.RELEASE
swagger.license=Apache License, Version 2.0
swagger.licenseUrl=https://www.apache.org/licenses/LICENSE-2.0.html
swagger.termsOfServiceUrl=https://github.com/dyc87112/spring-boot-starter-swagger