检查发现resources下面的配置文件和mapper.xml没有打包进去,修改pom.xml,添加build标签,配置src/main/java和src/main/resources里面的.xml和.properties都打包进去
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</build>
jenkins部署失败时,把正常包和失败的包都解压,仔细比对看问题出在哪