这几天搞了个springboot+jsp+jpa的项目,写完后想部署在amazon的aws的服务器上。发现打包的jar包一直没办法成功,一直没办法访问jsp页面,但是rest可以成功接受jason数据。
后面才发现springboot不支持jsp了
29.4.5 JSP Limitations
When running a Spring Boot application that uses an embedded servlet container (and is packaged as an executable archive), there are some limitations in the JSP support.
With Jetty and Tomcat, it should work if you use war packaging. An executable war will work when launched with java -jar, and will also be deployable to any standard container. JSPs are not supported when using an executable jar.
Undertow does not support JSPs.
Creating a custom error.jsp page does not override the default view for error handling. Custom error pages should be used instead.
There is a JSP sample so that you can see how to set things up.