1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

(没成功,放弃尝试)去除注册中心 nacos;添加 Eureka;升级Spring Cloud版本为2022.0.1;JDK版本为17

This commit is contained in:
2023-03-01 17:24:31 +08:00
parent 0f43fa20b6
commit b7d2a5efd4
25 changed files with 154 additions and 103 deletions

View File

@@ -13,25 +13,16 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
<!-- Spring Boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- logback -->
<dependency>
<groupId>ch.qos.logback</groupId>

View File

@@ -2,12 +2,10 @@ package com.cxyxiaomo.epp.test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
// 启动类
@SpringBootApplication
@EnableDiscoveryClient
public class TestProvider {
public static void main(String[] args) {
SpringApplication.run(TestProvider.class, args);

View File

@@ -6,6 +6,3 @@ spring:
application:
name: microservice-provider-test
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848