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

The swagger-ui returns text/plain instead of html

Open sz4b0lcs opened this issue 10 years ago • 2 comments

When I make the request from browser to http://localhost:8080/sdoc.jsp I get the response in text/plain.

sz4b0lcs avatar Oct 23 '14 10:10 sz4b0lcs

More than likely your web server is not treating it as a jsp. Have you enabled a jsp view resolver in spring

adrianbk avatar Oct 23 '14 10:10 adrianbk

I have embedded Tomcat running. My app is a REST api. As I read jsp is not working with embeded Tomcat in Spring Boot. Is this correct?

If so, what can I do to get it working?

Thanks for your help!

sz4b0lcs avatar Oct 23 '14 11:10 sz4b0lcs