解决多模块下Swagger访问不了

解决多模块下Swagger访问页面出现 Could not render e, see the console.或者控制台出现reading ‘url’)

在application.properties中加代码

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

并且配置文件中的.enable()为.enable

return new Docket(DocumentationType.SWAGGER_2)
        .apiInfo(apiInfo())
        .enable(true)

版权声明:本文为qq_44255146原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。