提交 6b01feb9 作者: 布红亮

Revert "添加nacos配置"

This reverts commit fb27bfa3
上级 fb27bfa3
...@@ -95,21 +95,10 @@ ...@@ -95,21 +95,10 @@
</dependency> </dependency>
<!-- 注册中心--> <!-- 注册中心-->
<!-- <dependency>-->
<!-- <groupId>org.springframework.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>-->
<!-- <version>2.1.5.RELEASE</version>-->
<!-- </dependency>-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<version>2.1.4.RELEASE</version>
</dependency>
<dependency> <dependency>
<groupId>com.alibaba.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>2.1.4.RELEASE</version> <!-- 请注意,这里需要使用与Spring Boot 2.1兼容的版本 --> <version>2.1.5.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -3,12 +3,13 @@ package com.zzsn.thinktank; ...@@ -3,12 +3,13 @@ package com.zzsn.thinktank;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication @SpringBootApplication
//@EnableAsync //@EnableAsync
@MapperScan(value = {"com.zzsn.thinktank.mapper*"}) @MapperScan(value = {"com.zzsn.thinktank.mapper*"})
@EnableDiscoveryClient @EnableEurekaClient
public class ThinkTankApplication { public class ThinkTankApplication {
public static void main(String[] args) { public static void main(String[] args) {
......
server: server:
port: 9099 port: 9099
spring: eureka:
cloud: instance:
nacos: #注册到注册中心通过Feign调用时,hostname必须是服务器ip
config: hostname: 1.95.42.138
namespace: smartDev instance-id: 1.95.42.138:9099
discovery: prefer-ip-address: false
namespace: smartDev client:
register-with-eureka: true
fetch-registry: false
service-url:
defaultZone: http://sasac:Sasac09ckJHyujT!W@192.168.200.226:8017/eureka/
server: server:
port: 9098 port: 9098
spring: eureka:
cloud: instance:
nacos: #注册到注册中心通过Feign调用时,hostname必须是服务器ip
config: hostname: 1.95.42.138
namespace: smartProd instance-id: 1.95.42.138:9098
discovery: prefer-ip-address: false
namespace: smartProd client:
\ No newline at end of file register-with-eureka: true
fetch-registry: false
service-url:
defaultZone: http://sasac:BE4cYRvN2WG!YV5z@106.38.99.147:20717/eureka/
\ No newline at end of file
server: server:
port: 9099 port: 9099
spring: eureka:
cloud: instance:
nacos: #注册到注册中心通过Feign调用时,hostname必须是服务器ip
config: hostname: 1.95.42.138
namespace: smartTest instance-id: 1.95.42.138:9099
discovery: prefer-ip-address: false
namespace: smartTest client:
\ No newline at end of file register-with-eureka: true
fetch-registry: false
service-url:
#线上测试环境
defaultZone: http://sasac:Sasac09ckJHyujT!W@106.38.99.147:20591/eureka/
\ No newline at end of file
spring:
cloud:
nacos:
config:
server-addr: 1.95.57.223:8848
username: ZZSN(ZIgriRlkxZ2g3SxM9x6sVYcMQe2QVxXx0/l4BAivWsTeVPkAYERSKxlHxzUwHF5M)
password: ZZSN(zB38iUSsp2RptT9HMrjJ0qGdSJ5iwq3jToor7ozqfMOYTiC6RwOvAxdayF7x9qm/)
file-extension: yml
discovery:
server-addr: 1.95.57.223:8848
username: ZZSN(ZIgriRlkxZ2g3SxM9x6sVYcMQe2QVxXx0/l4BAivWsTeVPkAYERSKxlHxzUwHF5M)
password: ZZSN(zB38iUSsp2RptT9HMrjJ0qGdSJ5iwq3jToor7ozqfMOYTiC6RwOvAxdayF7x9qm/)
jasypt:
encryptor:
property:
prefix: ZZSN(
suffix: )
algorithm: PBEWITHHMACSHA512ANDAES_256
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论