v1.0.2 add eureka client for testing

master
Yan 4 days ago
parent 262998e70b
commit 2e4632ee6f

@ -5,7 +5,7 @@
<groupId>com.example</groupId> <groupId>com.example</groupId>
<artifactId>struts7-springboot3-integration</artifactId> <artifactId>struts7-springboot3-integration</artifactId>
<version>1.0.1</version> <version>1.0.2</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Struts7 Spring-Boot3 HelloWorld Demo</name> <name>Struts7 Spring-Boot3 HelloWorld Demo</name>
@ -18,6 +18,7 @@
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version> <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
<servlet-api.version>6.1.0</servlet-api.version> <servlet-api.version>6.1.0</servlet-api.version>
<jsp-api.version>4.0.0</jsp-api.version> <jsp-api.version>4.0.0</jsp-api.version>
<spring-cloud-dependencies.version>2024.0.1</spring-cloud-dependencies.version>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
@ -28,6 +29,13 @@
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud-dependencies.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<dependencies> <dependencies>
@ -35,6 +43,10 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency> <dependency>
<groupId>jakarta.servlet.jsp</groupId> <groupId>jakarta.servlet.jsp</groupId>
<artifactId>jakarta.servlet.jsp-api</artifactId> <artifactId>jakarta.servlet.jsp-api</artifactId>

@ -1 +0,0 @@
spring.application.name=struts7-springboot3-integration

@ -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
Loading…
Cancel
Save