Why HATEOAS starts creating issue for spring-boot version >= 2.2.x during startup with Swagger 2.x?

前端 未结 14 2184
忘掉有多难
忘掉有多难 2020-12-09 15:18

I moved my project from spring-boot 2.1.9 to 2.2.0.

While starting the project, I am facing the below error messages.

Caused by: org.sprin         


        
14条回答
  •  囚心锁ツ
    2020-12-09 16:05

        Use following 2 dependency to resolve Swagger and Hateoas dependency conflict.
        
        If Spring Boot version is >= 2.2.0 the use io.springfox version 3.0.0
        
        
            io.springfox
            springfox-swagger2
            3.0.0
        
        
        
            io.springfox
            springfox-swagger-ui
            3.0.0
        
    

    After using version 3.0.0 swagger-ui will not be working so use following dependency and user /swagger-ui/ instead /swagger-ui.html

        
            io.springfox
            springfox-boot-starter
            3.0.0
        
    

提交回复
热议问题