Added Springfox Swagger-UI and it's not working, what am I missing?

后端 未结 11 1512
甜味超标
甜味超标 2020-12-02 00:00

Following the instructions here:

http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api

I added these dependencies to my project:



        
11条回答
  •  误落风尘
    2020-12-02 00:29

    Conclusion: I find there are no jar files under maven repository ${user_home}/.m2/repository/io/springfox/springfox-swagger-ui/2.9.2,after below steps everything is ok.

    I solved this issue by follow steps:

    • go to ${user_home}/.m2/repository/io/springfox/springfox-swagger-ui/2.9.2
    • examine whether the files under 2.9.2 is complete。if there are missing files,delete the whole 2.9.2 directory
    • execute reimport all maven projects in intellij idea

    My spring boot version is 2.2.2.

提交回复
热议问题