Springboot整合外部Tomcat配置
发布时间
阅读量:
阅读量
1,此前所开展的项目均采用springboot自带的tomcat进行部署,然而springboot默认集成的tomcat组件并不兼容jsp技术,因此可考虑引入外部tomcat以实现对jsp的支持。
2,创建一个生成war包的工程项目。

3,pom文件中引入相关依赖
其中tomcat-embed-jasper这一组件的存在,表明tomcat具备对jsp技术的支持能力。
<!-- 加入外部的tomcat的支持 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<!-- 加入内嵌tomcat对jsp的支持 -->
<dependency>
<groupId>org.apache.
全部评论 (0)
还没有任何评论哟~
