美文网首页
[springfox/documentation/swagger

[springfox/documentation/swagger

作者: simians | 来源:发表于2024-06-04 17:51 被阅读0次

    spring boot 整合swagger3.0 报错问题

    Caused by: java.io.FileNotFoundException: class path resource [springfox/documentation/swagger2/configuration/Swagger2DocumentationConfiguration.class] cannot be opened because it does not exist
    

    解决方案添加如下依赖

            <!-- swagger2 -->
            <dependency>
                <groupId>io.springfox</groupId>
                <artifactId>springfox-swagger2</artifactId>
                <version>3.0.0</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
    

    相关文章

      网友评论

          本文标题:[springfox/documentation/swagger

          本文链接:https://www.haomeiwen.com/subject/vkbyqjtx.html