eureka
tanghc 4 years ago
parent 2e4450b5ed
commit 3290a9011d
  1. 2
      sop-admin/sop-admin-server/pom.xml
  2. 2
      sop-admin/sop-admin-server/src/main/resources/META-INF/sop-admin.properties
  3. 2
      sop-admin/sop-admin-server/src/main/resources/application-dev.properties
  4. 8
      sop-auth/src/main/resources/application-dev.properties
  5. 7
      sop-example/sop-story/pom.xml
  6. 4
      sop-gateway/pom.xml
  7. 2
      sop-gateway/src/main/resources/application-dev.properties
  8. 4
      sop-website/pom.xml
  9. 2
      sop-website/src/main/resources/application-dev.properties

@ -23,7 +23,7 @@
<dependencies>
<dependency>
<groupId>com.gitee.sop</groupId>
<artifactId>sop-bridge-nacos</artifactId>
<artifactId>sop-bridge-eureka</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>

@ -13,6 +13,8 @@ sop.sign-type=rsa
nacos.config.server-addr=${register.url}
nacos.discovery.server-addr=${register.url}
registry.name=eureka
# nacos cloud配置
spring.cloud.nacos.discovery.server-addr=${register.url}

@ -6,6 +6,6 @@ mysql.username=root
mysql.password=root
# 注册中心地址
register.url=127.0.0.1:8848
register.url=http://localhost:1111/eureka/
logging.level.com.gitee=debug

@ -7,13 +7,13 @@ mysql.host=localhost:3306
mysql.username=root
mysql.password=root
# nacos地址
register.url=127.0.0.1:8848
# 注册中心地址
register.url=http://localhost:1111/eureka/
# ------- 需要改的配置end -------
# nacos cloud配置
spring.cloud.nacos.discovery.server-addr=${register.url}
# eureka地址
eureka.client.serviceUrl.defaultZone=${register.url}
# 数据库配置
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

@ -27,17 +27,18 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- 使用nacos注册中心 -->
<!-- 使用nacos注册中心
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
-->
<!-- 使用eureka注册中心 -->
<!--<dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>-->
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>

@ -22,8 +22,8 @@
-->
<dependency>
<groupId>com.gitee.sop</groupId>
<artifactId>sop-bridge-nacos</artifactId>
<!-- <artifactId>sop-bridge-eureka</artifactId>-->
<!-- <artifactId>sop-bridge-nacos</artifactId>-->
<artifactId>sop-bridge-eureka</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>

@ -6,6 +6,6 @@ mysql.username=root
mysql.password=root
# nacos注册中心地址
register.url=127.0.0.1:8848
register.url=http://localhost:1111/eureka/
logging.level.com.gitee=debug

@ -23,8 +23,8 @@
-->
<dependency>
<groupId>com.gitee.sop</groupId>
<artifactId>sop-bridge-nacos</artifactId>
<!--<artifactId>sop-bridge-eureka</artifactId>-->
<!-- <artifactId>sop-bridge-nacos</artifactId>-->
<artifactId>sop-bridge-eureka</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>

@ -3,7 +3,7 @@ spring.application.name=sop-website
# ------- 需要改的配置 -------
# 注册中心地址
register.url=127.0.0.1:8848
register.url=http://localhost:1111/eureka/
# 网关内网地址
# !!沙箱环境是提供给外部的测试环境,不能把正式环境当做沙箱环境来使用。

Loading…
Cancel
Save