首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >springfox - Swagger2Controller:无法找到组默认值的规范

springfox - Swagger2Controller:无法找到组默认值的规范
EN

Stack Overflow用户
提问于 2018-07-31 18:08:06
回答 1查看 4.4K关注 0票数 3

不要工作/v2/api-docs返回404

此时在logs-Swagger2Controller:无法找到组默认的规范。

豆类码头在春天创造ok ..。但Swagger2Controller.DocumentationCache是空的。

帮帮我吧.

以前是工作..。

代码语言:javascript
复制
@EnableSwagger2
@Configuration
class SwaggerConfig {

    @Bean
    fun allApi(): Docket {
        return Docket(DocumentationType.SWAGGER_2)
                .select()
                .apis(RequestHandlerSelectors.any())
                .paths(PathSelectors.any())
                .build()
    }
}

格莱德尔:

代码语言:javascript
复制
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-aop')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot')

// Rest
compile('org.springframework.boot:spring-boot-starter-data-rest')

// Web
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('org.springframework.boot:spring-boot-starter-web')

// Security
compile('org.springframework.security:spring-security-web')
compile('org.springframework.security:spring-security-config')

// Jackson
compile('com.fasterxml.jackson.module:jackson-module-kotlin')

//     Vaadin
compile('com.vaadin:vaadin-spring-boot-starter')

// DB
runtime('org.postgresql:postgresql')

// Kotlin
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")

// Sentry
compile 'io.sentry:sentry:1.7.2'
compile 'com.getsentry.raven:raven-logback:8.0.3'

// Log to json
compile('ch.qos.logback.contrib:logback-json-classic:0.1.5')
compile "net.logstash.logback:logstash-logback-encoder:5.0"
// Logs {IF}
compile "org.codehaus.janino:janino"

// Swagger
compile "io.springfox:springfox-swagger2:2.9.2"
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-08-01 02:07:18

我忘了.)))

自动启动:true

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51619553

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档