重构了多个项目后,在联调接口时,查看api会发现Swagger在几个项目可用,有几个不可用,配置都一样,扫描也充分,那问题出在哪里呢?先仔细找了下Docket的源码,发现有这么个方法: /** * Predicate that matches RequestHandler with given base package name for the class of the handler method. * This predicate includes all request handlers
放行 , 不拦截. @Configuration open class MyWebMvcConfig : WebMvcConfigurationSupport() { override fun addResourceHandlers( registry: ResourceHandlerRegistry) { registry.addResourceHandler("/**").addResourceLocations("classpath:/static/"); r