Spring-Boot Not Finding JSP Pages in WAR File
来源:互联网 发布:查贴吧ip软件手机 编辑:程序博客网 时间:2024/04/30 10:09
官方有个sample,地址是:
https://github.com/spring-projects/spring-boot/tree/v1.1.5.RELEASE
里面有个spring-boot\spring-boot-samples\spring-boot-sample-web-jsp
自己跑一下。
如果是原来的工程应该添加tomcat-jsp解析包
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
另外其他标签库自行添加,应该能运行起来
I had the same issue and in my case it happened because I was missing a library in the classpath.
Spring Boot does not include Jasper as default and therefore JSP rendering doesn't work unless you explicitly include the library:
For Gradle:
compile("org.apache.tomcat.embed:tomcat-embed-jasper")
For Maven:
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
<version>8.0.23</version>
</dependency>
0 0
- Spring-Boot Not Finding JSP Pages in WAR File
- spring boot 打包war
- Spring Boot 打包war
- Spring boot war部署
- spring boot war 打包
- Spring boot war部署
- org.apache.jasper.JasperException: /pages/column.jsp (line: 8, column: 1) File "pathTags.jsp" not f
- flying-saucer/iText PDF in servlet not finding css file HTML生成PDF未加载css
- Spring boot WAR包部
- Spring Boot 生成 war 包
- spring boot 发布成war
- 最新spring boot搭建,整合jsp页面以及打war包配置
- spring boot Configuration Annotation Proessor not found in classpath
- spring boot Configuration Annotation Proessor not found in classpath
- Spring Boot Configuration Annotion Processor not found in classpath
- spring boot Configuration Annotation Proessor not found in classpath
- HWI WAR file not found问题
- spring boot 定时程序发布WAR WAR部署TOMCAT
- 《学习OpenCV》第三章课后题1
- FireDAC 下的 Sqlite [8] - 自定义函数
- weblogic 建域或启动慢的解决方法
- unity 发布Android包
- 仿淘宝购物车嵌套ListView
- Spring-Boot Not Finding JSP Pages in WAR File
- Application Cache---HTML5应用程序缓存Application Cache
- 通过地址获取经纬度(中文地址亦可)
- /etc/fstab 参数详解及如何设置开机自动挂载
- 高效幂算法
- Java枚举介绍及使用详解
- java -- java读取文件md5工具方法
- beanstalk python操作
- 多线程(四) 实现线程范围内模块之间共享数据及线程间数据独立(Map集合)