springboot에서 @enableeurekaserver를 가져올 수 없습니다

1494 단어 springbootspringcloud
최근에 eureka 의존을 추가할 때
항상 성공적으로 도입할 수 없습니다
프로그램 @enableeurekaserver 오류 발생
최종적으로 찾은 이유는springboot와springcloud의 지원 버전이 일치하지 않기 때문입니다
pom 수정.xml

   
      org.springframework.cloud
      spring-cloud-starter-netflix-eureka-server
   
   
      org.springframework.boot
      spring-boot-starter-test
      test
   



   
       
           
               org.springframework.cloud
               spring-cloud-dependencies
               Finchley.RELEASE
               pom
               import
           
       
   

이후 실행
 
버전 번호 규칙
Spring Cloud은 익숙한 디지털 버전 번호가 아니라 개발 번호에 대응한다.
Cloud 대명
부트 버전
부트 버전
lifecycle
Angle
1.2.x
incompatible with 1.3
EOL in July 2017
Brixton
1.3.x
1.4.x
2017-07졸
Camden
1.4.x
1.5.x
-
Dalston
1.5.x
not expected 2.x
-
Edgware
1.5.x
not expected 2.x
-
Finchley
2.x
not expected 1.5.x
-
대호를 개발하는 것은 규칙적이지 않은 것 같지만 실제적으로 알파벳은 순서가 있다. 예를 들어 Dalston 버전은 D버전으로 약칭할 수 있고 대응하는 Edgware 버전은 E버전으로 약칭할 수 있다.

좋은 웹페이지 즐겨찾기