- 开发环境jdk1.8
- IDE eclipse Neon
- SpringCloud版本Dalston.SR1
- SpringBoot版本1.5.9.RELEASE 创建一个Maven Project 打包的方式选为pom pom文件中的内容如下
4.0.0
com.thc.springcloud
mircroservicecloud
0.0.1-SNAPSHOT
pom
UTF-8
1.8
1.8
4.12
1.2.17
1.16.18
org.springframework.cloud
spring-cloud-dependencies
Dalston.SR1
pom
import
org.springframework.boot
spring-boot-dependencies
1.5.9.RELEASE
pom
import
mysql
mysql-connector-java
5.0.4
com.alibaba
druid
1.0.31
org.mybatis.spring.boot
mybatis-spring-boot-starter
1.3.0
ch.qos.logback
logback-core
1.2.3
junit
junit
${junit.version}
test
log4j
log4j
${log4j.version}
microservicecloud
src/main/resources
true
org.apache.maven.plugins
maven-resources-plugin
$
建立完成后效果如下