现在项目有三个模块:dao(mybatis)模块、service模块和web模块,我在project 的pom.xml文件是这样打包设置的:
good-learning-success
src/main/java
**/*.*
**/*.java
false
src/main/resources
**/*.*
false
org.springframework.boot
spring-boot-maven-plugin
com.qtay.gls.Application
ZIP
repackage
打包也成功了,本地运行更没问题,但是我上传到服务器运行的时候:java -jar xxx就报:
2017-12-09 11:49:42.196 INFO [background-preinit] o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.5.Final
2017-12-09 11:49:43.735 WARN [main] o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.qtay.gls.dao]' package. Please check your configuration.
2017-12-09 11:49:44.040 WARN [main] o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.qtay.gls.controller, com.qtay.gls]' package. Please check your configuratio
...]