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
复制代码