解决多模块下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)