-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Milestone
Description
Description
I recently went from 2.1.6 to 2.2.0-SNAPSHOT.
With 2.1.6, the SpringMVC server stub served the generated api at /basePath.
With 2.2.0-SNAPSHOT this is no longer the case, the api is simply served at /
(bottom of http://localhost:8080/swagger-ui.html also says [ base url: / , api version: 1.0.0 ] )
Swagger-codegen version
2.2.0-SNAPSHOT, commit eda6d35
Swagger declaration file content or url
petstore_full.yaml from the online editor
Command line used for generation
Using swagger-codegen-maven-plugin, 2.2.0-SNAPSHOT
Relevant config
<execution>
<id>stub</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/test.yaml</inputSpec>
<language>spring</language>
<output>${project.build.directory}/generated-sources/stub</output>
</configuration>
</execution>
Steps to reproduce
mvn clean package
mvn -f target/generated-sources/stub/pom.xml package in
java -jar target/generated-sources/stub/target/swagger-spring-server-1.0.0.jar
Reactions are currently unavailable