Forum Discussion

afamorim's avatar
afamorim
New Member
2 years ago

Spring cloud gateway loading a Yaml contract

I have built a gateway to my microservices and I didn't expose all endpoints from them because of that I decided to make a Yaml contract. But when i try to load this contract file into my project  I have a problem with the version of spring and swagger lib.
When I use this spring version 

<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.2</version>

with 

<dependency>
  <groupId>io.springfox</groupId>
  <artifactId>springfox-boot-starter</artifactId>
  <version>3.0.0</version>
</dependency>

<dependency>
  <groupId>io.springfox</groupId>
  <artifactId>springfox-swagger2</artifactId>
  <version>3.0.0</version>
</dependency>

 Nothing work, but when I change to 2.7.9 spring's version everything works fine with same configuration.

Have I done something wrong? If someone can help I will be very gratefull

No RepliesBe the first to reply