Swagger之Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang
Spring Boot版本 Swagger 版本
2.6.5 3.0.0
io.springfox
springfox-boot-starter
3.0.0
第一步:
application.yml 或applicaiton.properties 中添加如下配置
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
第二步:
项目中新建一个 Config 类,内容如下:
import com.sxxc.common.core.utils.StringUtils;
import io.swagger.models.auth.In;
import org.springframework.boot.actuate.autoconfigure.endpoint.web.CorsEndpointProperties;
import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties;
import org.springframework.boot.actuate.autoconfigure.web.server.ManagementPortType;
import org.springframework.boot.actuate.endpoint.ExposableEndpoint;
import org.springframework.boot.actuate.endpoint.web.*;
import org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier;
import o

最低0.47元/天 解锁文章
1143

被折叠的 条评论
为什么被折叠?



