spring-cloud-samples / configserver

371 stars 394 forks source link

Unable to use latest spring cloud version for config server #29

Open voodemsanthosh opened 3 years ago

voodemsanthosh commented 3 years ago

I am creating config-server with latest spring cloud version, `

org.springframework.boot
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.4.3</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>`

<spring-cloud.version>2020.0.1</spring-cloud.version>

we are always getting below error,

`2021-03-24 15:54:31.004 INFO 29368 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2021-03-24 15:54:31.021 INFO 29368 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-03-24 15:54:31.032 ERROR 29368 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Invalid config server configuration.

Action:

If you are using the git profile, you need to set a Git URI in your configuration. If you are using a native profile and have spring.cloud.config.server.bootstrap=true, you need to use a composite configuration.

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.692 s [INFO] Finished at: 2021-03-24T15:54:31+05:30 [INFO] Final Memory: 29M/107M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.3:run (default-cli) on project prd-config-server: Application finished with exit code: 1 -> [Help 1] [ERROR] `

bootstarp.yml

spring: profiles: active: composite cloud: config: server: composite:

Please help us to find cause.

voodemsanthosh commented 3 years ago

is there any chance to look at this issue. it is hard stopper to use latest spring cloud versions

spencergibb commented 3 years ago

https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2020.0-Release-Notes#breaking-changes