Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use HTML file instead of JSP to load swagger-ui #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexcheng1982
Copy link

Due to Spring Boot's limitations on JSP files, swagger-ui may not load
correctly when using in Spring Boot. I had issues like JSP files rendered as plain text or JSP expression not evaluated.

In sdoc.jsp we only use JSP to get the context path, which can also be retrieved using JavaScript. Using HTML file is a more compatible approach for different frameworks. After this change, user can access sdoc.html for the Swagger UI.

Due to Spring Boot's limitations on JSP files, swagger-ui may not load
correctly when using in Spring Boot. Using HTML file is a more
compatible approach for different frameworks.
@pravsingh
Copy link

any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants