bootjar打包没有jsp_springboot将jsp打包成jar运行的坑

springboot中集成jsp,打成jar包可用jsp

spring-boot-maven-plugin 1.5.3版本的打包控件打出来的jar包是无法访问jsp的,直接404

spring-boot-maven-plugin 1.4.2版本就是可以的

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0

com.idp

UM-BOSS

1.0

jar

com.boot.web

http://maven.apache.org

org.springframework.boot

spring-boot-starter-parent

1.5.1.RELEASE

UTF-8

1.8

nexus-public-snapshots

http://10.20.69.85:8081/nexus/content/groups/public-snapshots

nexus

http://10.20.69.85:8081/nexus/content/groups/public

org.springframework.boot

spring-boot-starter-tomcat

provided

org.apache.tomcat.embed

tomcat-embed-jasper

org.springframework.boot

spring-boot-starter-tomcat

provided

org.apache.tomcat.embed

tomcat-embed-jasper

dev

true

dev

org.springframework.boot

spring-boot-starter-tomcat

org.apache.tomcat

tomcat-jdbc

org.apache.maven.plugins

maven-resources-plugin

2.6

prod

prod

UM-BOSS

clean compile

src/main/webapp

META-INF/resources

**/**

src/main/resources

false

**/**

src/main/java

com/idp/web/**/**/*.xml

org.apache.maven.plugins

maven-compiler-plugin

2.3.2

1.8

1.8

UTF-8

org.springframework.boot

spring-boot-maven-plugin

1.4.2.RELEASE

repackage

com.ApplicationContext

JAR

复制代码

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值