Skip to content

Commit fd37b94

Browse files
authored
Merge pull request #12144 from swagger-api/spring-mvc-sample-update
updated spring-mvc samples
2 parents e774827 + 21b55b1 commit fd37b94

File tree

74 files changed

+94
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+94
-24
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.35-SNAPSHOT
1+
3.0.43-SNAPSHOT

samples/server/petstore/spring-mvc-j8-async/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,6 @@
170170
<springfox-version>2.9.2</springfox-version>
171171
<jackson-version>2.9.10</jackson-version>
172172
<jackson-threetenbp-version>2.9.10</jackson-threetenbp-version>
173-
<spring-version>5.0.18.RELEASE</spring-version>
173+
<spring-version>5.3.27</spring-version>
174174
</properties>
175175
</project>

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/AllPetsApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* NOTE: This class is auto generated by the swagger code generator program (3.0.35-SNAPSHOT).
2+
* NOTE: This class is auto generated by the swagger code generator program (3.0.43-SNAPSHOT).
33
* https://github.com/swagger-api/swagger-codegen
44
* Do not edit the class manually.
55
*/
@@ -32,6 +32,7 @@
3232
import java.util.Optional;
3333
import java.util.concurrent.CompletableFuture;
3434

35+
3536
@Validated
3637
@Api(value = "allPets", description = "the allPets API")
3738
public interface AllPetsApi {

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/AllPetsApiController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import javax.servlet.http.HttpServletRequest;
66
import java.util.Optional;
77

8+
89
@RestController
910
public class AllPetsApiController implements AllPetsApi {
1011

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/ApiException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.swagger.api;
22

3+
34
public class ApiException extends Exception {
45
private int code;
56
public ApiException (int code, String msg) {

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/ApiOriginFilter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import javax.servlet.*;
66
import javax.servlet.http.HttpServletResponse;
77

8-
public class ApiOriginFilter implements javax.servlet.Filter {
8+
9+
public class ApiOriginFilter implements Filter {
910
@Override
1011
public void doFilter(ServletRequest request, ServletResponse response,
1112
FilterChain chain) throws IOException, ServletException {

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/ApiResponseMessage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import javax.xml.bind.annotation.XmlTransient;
44

5+
56
@javax.xml.bind.annotation.XmlRootElement
67
public class ApiResponseMessage {
78
public static final int ERROR = 1;

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/NotFoundException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.swagger.api;
22

3+
34
public class NotFoundException extends ApiException {
45
private int code;
56
public NotFoundException (int code, String msg) {

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/PetApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* NOTE: This class is auto generated by the swagger code generator program (3.0.35-SNAPSHOT).
2+
* NOTE: This class is auto generated by the swagger code generator program (3.0.43-SNAPSHOT).
33
* https://github.com/swagger-api/swagger-codegen
44
* Do not edit the class manually.
55
*/
@@ -34,6 +34,7 @@
3434
import java.util.Optional;
3535
import java.util.concurrent.CompletableFuture;
3636

37+
3738
@Validated
3839
@Api(value = "pet", description = "the pet API")
3940
public interface PetApi {

samples/server/petstore/spring-mvc-j8-async/src/main/java/io/swagger/api/PetApiController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import javax.servlet.http.HttpServletRequest;
66
import java.util.Optional;
77

8+
89
@RestController
910
public class PetApiController implements PetApi {
1011

0 commit comments

Comments
 (0)