4.0.0 com.miu father 0.0.1-SNAPSHOT pom father Demo project for Spring Boot org.springframework.boot spring-boot-starter-parent 2.0.4.RELEASE UTF-8 UTF-8 1.8 entity dao service web org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-test test org.apache.maven.plugins maven-compiler-plugin 3.1 ${java.version} ${java.version} org.apache.maven.plugins maven-surefire-plugin 2.19.1 true
4.0.0 com.miu entity 0.0.1-SNAPSHOT jar entity Demo project for Spring Boot com.miu father 0.0.1-SNAPSHOT ../pom.xml UTF-8 UTF-8 1.8 org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-test test
dao 的 pom.xml 内容
4.0.0 com.miu dao 0.0.1-SNAPSHOT jar dao Demo project for Spring Boot com.miu father 0.0.1-SNAPSHOT ../pom.xml UTF-8 UTF-8 1.8 org.springframework.boot spring-boot-starter-data-redis org.mybatis.spring.boot mybatis-spring-boot-starter 1.3.2 mysql mysql-connector-java runtime org.springframework.boot spring-boot-starter-test test com.miu entity 0.0.1-SNAPSHOT
service 模块的 pom.xml 内容
4.0.0 com.miu service 0.0.1-SNAPSHOT jar service Demo project for Spring Boot com.miu father 0.0.1-SNAPSHOT ../pom.xml UTF-8 UTF-8 1.8 org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-test test com.miu entity 0.0.1-SNAPSHOT com.miu dao 0.0.1-SNAPSHOT
web模块的 pom.xml 内容
注意build部分,因为web模块作为程序的入口启动,所以它需要打包,并且要指定Main Class
4.0.0 com.miu web 0.0.1-SNAPSHOT jar web Demo project for Spring Boot com.miu father 0.0.1-SNAPSHOT ../pom.xml UTF-8 UTF-8 1.8 org.springframework.boot spring-boot-starter-data-redis org.springframework.boot spring-boot-starter-web org.mybatis.spring.boot mybatis-spring-boot-starter 1.3.2 mysql mysql-connector-java runtime org.springframework.boot spring-boot-starter-test test com.miu entity 0.0.1-SNAPSHOT com.miu service 0.0.1-SNAPSHOT com.miu dao 0.0.1-SNAPSHOT org.springframework.boot spring-boot-maven-plugin com.miu.web.WebApplication ZIP repackage