아래글을 읽고, Spring Boot와 Spring Cloud 버전을 맞춰줘야 할 것 같아서 수정함.
configserver 기동 확인함.
스프링부트 버전은..아래부분에서 확인하고,
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version>
스프링 클라우드 버전은 아래 부분에서 확인 함.
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.3</version>
부트와 클라우드의 궁합 확인은...
https://spring.io/projects/spring-cloud
Spring Cloud
Spring Cloud is an umbrella project consisting of independent projects with, in principle, different release cadences. To manage the portfolio a BOM (Bill of Materials) is published with a curated set of dependencies on the individual project. Go here to r
spring.io
아래글을 읽고 문제 해결함
https://hungrydiver.co.kr/bbs/detail/develop?id=91
Spring Boot 와 Spring Cloud 버전 결정
hungrydiver.co.kr
HOXON 삭제하고...아래 라인
<spring-cloud.version>Hoxton.SR1</spring-cloud.version>
..아래 빨간줄 삽입하고, 이전버전은 삭제함.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.optimagrowth</groupId>
<artifactId>configserver</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Configuration Server</name>
<description>Configuration Server</description>
<properties>
<java.version>17</java.version>
<docker.image.prefix>ostock</docker.image.prefix>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- This plugin is used to create a docker image and publish the image to docker hub-->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.13</version>
<configuration>
<repository>${docker.image.prefix}/${project.artifactId}</repository>
<tag>${project.version}</tag>
<buildArgs>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
</configuration>
<executions>
<execution>
<id>default</id>
<phase>install</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
'IT > MSA' 카테고리의 다른 글
Eureka Client 설정용 샘플 application.yml 파일 (0) | 2022.10.09 |
---|---|
Eureka Server 설정용 샘플 yml 파일 (0) | 2022.10.09 |
이클립스 프로젝트 API G/W 만들때 사용하는 패키지?? (0) | 2022.10.08 |
MSA 책 추천 (0) | 2022.10.08 |
용어 - polyglot (0) | 2022.10.08 |
댓글