Document new spring.config.import=configserver: way of importing from config server
See original GitHub issueI think there’s something missing. Maybe just documentation? A simple app with the config starter no longer tries to connect to the config server on startup. It looks like maybe I need to set spring.config.import=optional:configserver:http://localhost:8888
to get back to the old default behaviour? Maybe we could make that the default again to make it easier to migrate existing apps?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:12 (7 by maintainers)
Top Results From Across the Web
No spring.config.import property has been defined
Spring Boot 2.4 introduced a new way to import configuration data via the spring.config.import property. This is now the default way to bind...
Read more >Spring Cloud Config Server
If you use Spring Cloud Config Client, you need to set the spring.config.import property in order to bind to Config Server. You can...
Read more >Spring Cloud Config Server: Step by Step - DEV Community
Step 1) Create the Spring Cloud Config Server · 1.2 Update the Main Class · 1.3 Create a git repo with the properties...
Read more >Quick Intro to Spring Cloud Configuration - Baeldung
To complete our server, we have to initialize a Git repository under the configured url, create some new properties files, and populate them...
Read more >Spring Cloud Config Server: Step by Step
1.1) Create a Sprig Boot App · 1.2 Update the Main Class · 1.3 Create a git repo with the properties file ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was also a bit lost before stumbling on this issue. Some documentation would be great.
However, as default behavior, couldn’t spring-cloud-config configure the
spring.config.import=optional:configserver
property using thespring.cloud.config.uri
one ? As far as I see theuri
property becomes useless therehttps://docs.spring.io/spring-cloud/docs/2020.0.0/reference/html/