swagger-springmvc-demo icon indicating copy to clipboard operation
swagger-springmvc-demo copied to clipboard

Use HTML file instead of JSP to load swagger-ui

Open alexcheng1982 opened this issue 9 years ago • 1 comments

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.

alexcheng1982 avatar Jan 13 '15 00:01 alexcheng1982

any update on this?

pravsingh avatar Dec 02 '15 19:12 pravsingh