{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/3193","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/3193/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/3193/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/3193/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/3193","id":161678444,"number":3193,"title":"[Spring] Server stub no longer using basePath","user":{"login":"dan-lind","id":433464,"avatar_url":"https://avatars.githubusercontent.com/u/433464?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-lind","html_url":"https://github.com/dan-lind","followers_url":"https://api.github.com/users/dan-lind/followers","following_url":"https://api.github.com/users/dan-lind/following{/other_user}","gists_url":"https://api.github.com/users/dan-lind/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-lind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-lind/subscriptions","organizations_url":"https://api.github.com/users/dan-lind/orgs","repos_url":"https://api.github.com/users/dan-lind/repos","events_url":"https://api.github.com/users/dan-lind/events{/privacy}","received_events_url":"https://api.github.com/users/dan-lind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-22T13:11:35Z","updated_at":"2016-06-23T06:23:18Z","closed_at":null,"body":"<!--\r\nPlease follow the issue template below for bug reports and feature requests.\r\nAlso please indicate in the issue title which language/library is concerned. Eg:  [JAVA] Bug generating foo with bar \r\n-->\r\n\r\n##### Description\r\n\r\nI recently went from 2.1.6 to 2.2.0-SNAPSHOT. \r\nWith 2.1.6, the SpringMVC server stub served the generated api at /basePath.\r\nWith 2.2.0-SNAPSHOT this is no longer the case, the api is simply served at / \r\n(bottom of http://localhost:8080/swagger-ui.html also says [ base url: / , api version: 1.0.0 ] )\r\n\r\n##### Swagger-codegen version\r\n\r\n2.2.0-SNAPSHOT, commit eda6d35b9f2b02099e4305bd3e6b2bd0ed7a934b\r\n\r\n##### Swagger declaration file content or url\r\n\r\npetstore_full.yaml from the online editor\r\n\r\n##### Command line used for generation\r\nUsing swagger-codegen-maven-plugin, 2.2.0-SNAPSHOT\r\n\r\nRelevant config\r\n\r\n```\r\n<execution>\r\n    <id>stub</id>\r\n    <goals>\r\n        <goal>generate</goal>\r\n    </goals>\r\n    <configuration>\r\n        <inputSpec>${project.basedir}/src/main/resources/test.yaml</inputSpec>\r\n        <language>spring</language>\r\n        <output>${project.build.directory}/generated-sources/stub</output>\r\n    </configuration>\r\n</execution>\r\n```\r\n\r\n##### Steps to reproduce\r\nmvn clean package\r\nmvn -f target/generated-sources/stub/pom.xml package in \r\njava -jar target/generated-sources/stub/target/swagger-spring-server-1.0.0.jar\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/227960683","html_url":"https://github.com/swagger-api/swagger-codegen/issues/3193#issuecomment-227960683","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/3193","id":227960683,"user":{"login":"wing328","id":934260,"avatar_url":"https://avatars.githubusercontent.com/u/934260?v=3","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T06:23:18Z","updated_at":"2016-06-23T06:23:18Z","body":"@dan-lind please note that in the latest master `spring`generates spring boot instead of spring mvc server stub.\r\n\r\nTo generate server stub for spring mvc, please set library to `spring-mvc`.\r\n\r\nRef: https://github.com/swagger-api/swagger-codegen/pull/3133\r\n\r\ncc @cbornet "}}
{"actor":{"display_login":"wing328"}}