Skip to content

Fixed issue [Spring]Add support for the contextPath in Spring-boot gen #3193#3307

Merged
wing328 merged 1 commit intoswagger-api:masterfrom
vovan-:issue-3193
Jul 7, 2016
Merged

Fixed issue [Spring]Add support for the contextPath in Spring-boot gen #3193#3307
wing328 merged 1 commit intoswagger-api:masterfrom
vovan-:issue-3193

Conversation

@vovan-
Copy link
Contributor

@vovan- vovan- commented Jul 6, 2016

Fixed issue [Spring]Add support for the contextPath in Spring-boot gen #3193

@wing328
Copy link
Contributor

wing328 commented Jul 6, 2016

Thanks for the PR but your commit (as shown in the Commits tab) is not linked to your Github account, which means this PR won't count as your contribution in https://github.com/swagger-api/swagger-codegen/graphs/contributors.

Let me know if you need help fixing it.

Ref: http://stackoverflow.com/questions/3042437/change-commit-author-at-one-specific-commit

@vovan-
Copy link
Contributor Author

vovan- commented Jul 6, 2016

Linked commit to my Github account, thank you

@wing328
Copy link
Contributor

wing328 commented Jul 6, 2016

cc @cbornet

supportingFiles.add(new SupportingFile("swagger2SpringBoot.mustache",
(sourceFolder + File.separator + basePackage).replace(".", java.io.File.separator), "Swagger2SpringBoot.java"));
supportingFiles.add(new SupportingFile("application.properties",
supportingFiles.add(new SupportingFile("application.mustache",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Spring mvc property 'server.contextPath' means nothing, it is spring-boot related as noted here http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
So is there a reason to use same application.properties file for Spring boot and Spring mvc?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Didn't realise it's for spring boot only. I'll merge the PR shortly.

@wing328 wing328 merged commit 01e06c0 into swagger-api:master Jul 7, 2016
@wing328
Copy link
Contributor

wing328 commented Jul 7, 2016

@vovan- PR merged. Thanks for the contribution.

@cbornet
Copy link
Contributor

cbornet commented Jul 12, 2016

The old "application.properties" should have been deleted from resources !

@vovan-
Copy link
Contributor Author

vovan- commented Jul 12, 2016

Old application.properties are still in use by other type of project - Spring MVC

@cbornet
Copy link
Contributor

cbornet commented Jul 12, 2016

Oh, I thought it was only renaming.
Then the application.xxx files should both be named application.mustache and be put in the respective libraries dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants