Commit 773c31cea4cd09211d1d02a1b9139c480f0c09ff
1 parent
9cc79d0a
Exists in
master
注册中心配置
Showing
3 changed files
with
11 additions
and
1 deletions
Show diff stats
springboot.iml
@@ -86,6 +86,7 @@ | @@ -86,6 +86,7 @@ | ||
86 | <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.0.0" level="project" /> | 86 | <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.0.0" level="project" /> |
87 | <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.0" level="project" /> | 87 | <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.0" level="project" /> |
88 | <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.0" level="project" /> | 88 | <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.0" level="project" /> |
89 | + <orderEntry type="library" name="Maven: mysql:mysql-connector-java:8.0.15" level="project" /> | ||
89 | <orderEntry type="library" name="Maven: org.json:json:20180813" level="project" /> | 90 | <orderEntry type="library" name="Maven: org.json:json:20180813" level="project" /> |
90 | <orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.1" level="project" /> | 91 | <orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.1" level="project" /> |
91 | <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.3" level="project" /> | 92 | <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.3" level="project" /> |
springboot/pom.xml
@@ -79,6 +79,10 @@ | @@ -79,6 +79,10 @@ | ||
79 | </dependency> | 79 | </dependency> |
80 | 80 | ||
81 | <dependency> | 81 | <dependency> |
82 | + <groupId>mysql</groupId> | ||
83 | + <artifactId>mysql-connector-java</artifactId> | ||
84 | + </dependency> | ||
85 | + <dependency> | ||
82 | <groupId>org.json</groupId> | 86 | <groupId>org.json</groupId> |
83 | <artifactId>json</artifactId> | 87 | <artifactId>json</artifactId> |
84 | <version>20180813</version> | 88 | <version>20180813</version> |
springboot/src/main/resources/application.properties
@@ -11,4 +11,9 @@ mybatis.mapper-locations=classpath:/mapper/*.xml | @@ -11,4 +11,9 @@ mybatis.mapper-locations=classpath:/mapper/*.xml | ||
11 | mybatis.type-aliases-package=com.sincre.springboot.model | 11 | mybatis.type-aliases-package=com.sincre.springboot.model |
12 | 12 | ||
13 | 13 | ||
14 | -eureka.client.serviceUrl.defaultZone=http://121.40.109.21:8761/eureka/ | ||
15 | \ No newline at end of file | 14 | \ No newline at end of file |
15 | +#eureka.instance.hostname=localhost | ||
16 | +#不向注册中心注册 | ||
17 | +eureka.client.register-with-ecueka=false | ||
18 | +#不去检索服务 | ||
19 | +eureka.client.fetch-registry=false | ||
20 | +eureka.client.serviceUrl.defaultZone=http://121.40.109.21:8761/eureka/ |