From 2e4632ee6fa9df3fc694703f7e7e1dfa11118e46 Mon Sep 17 00:00:00 2001 From: Yan Date: Sun, 30 Mar 2025 22:07:37 +0800 Subject: [PATCH] v1.0.2 add eureka client for testing --- pom.xml | 14 +++++++++++++- src/main/resources/application.properties | 1 - src/main/resources/application.yaml | 10 ++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) delete mode 100644 src/main/resources/application.properties create mode 100644 src/main/resources/application.yaml diff --git a/pom.xml b/pom.xml index 582d062..e3d557f 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.example struts7-springboot3-integration - 1.0.1 + 1.0.2 jar Struts7 Spring-Boot3 HelloWorld Demo @@ -18,6 +18,7 @@ 3.14.0 6.1.0 4.0.0 + 2024.0.1 @@ -28,6 +29,13 @@ pom import + + org.springframework.cloud + spring-cloud-dependencies + ${spring-cloud-dependencies.version} + pom + import + @@ -35,6 +43,10 @@ org.springframework.boot spring-boot-starter-web + + org.springframework.cloud + spring-cloud-starter-netflix-eureka-client + jakarta.servlet.jsp jakarta.servlet.jsp-api diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index 86f6013..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ -spring.application.name=struts7-springboot3-integration \ No newline at end of file diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..6a8379f --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1,10 @@ +spring: + application: + name: struts7-server + +eureka: + client: + service-url: + defaultZone: http://cxfrs:password@localhost:8761/eureka/,http://cxfrs:password@localhost:8762/eureka/ + register-with-eureka: true + fetch-registry: true