swagger-springmvc-demo
swagger-springmvc-demo copied to clipboard
Use HTML file instead of JSP to load swagger-ui
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.
any update on this?