Comments (8)
Add to your POM. This fixed mine.
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
from manning-smia.
@hanct That's correct, I think the spring team removed the bootstrap dependency from the starter dependencies. So you need to include it separately now.
from manning-smia.
For me, adding ,
spring-cloud-starter-bootstrap
dependency did not work, but when I have put same configuration inapplication.properties
, it started working. Is it fine ?
Since bootstrap has been deprecated for newer versions of Spring, I think putting it in the application.properties is fine. Check out this StackOverflow (as posted earlier by duydoanx)
from manning-smia.
Add to your POM. This fixed mine.
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bootstrap</artifactId> </dependency>
Hi, i encounter same issue, but have not yet try your solution. Any idea why adding spring-cloud-starter-bootstrap would solve the problem? I read online articles, but none mention about using bootstrap
from manning-smia.
Add to your POM. This fixed mine.
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bootstrap</artifactId> </dependency>
Hi, i encounter same issue, but have not yet try your solution. Any idea why adding spring-cloud-starter-bootstrap would solve the problem? I read online articles, but none mention about using bootstrap
Think i know why, it is needed for bootstrap.yml to work
from manning-smia.
You can see the answer here: https://stackoverflow.com/a/65009480
from manning-smia.
For me, adding , spring-cloud-starter-bootstrap
dependency did not work, but when I have put same configuration in application.properties
, it started working. Is it fine ?
from manning-smia.
For me, adding ,
spring-cloud-starter-bootstrap
dependency did not work, but when I have put same configuration inapplication.properties
, it started working. Is it fine ?Since bootstrap has been deprecated for newer versions of Spring, I think putting it in the application.properties is fine. Check out this StackOverflow (as posted earlier by duydoanx)
is it? im still using it and without that dependency bootstrap.properties wont work but with it it works. using spring boot 3.1.4
from manning-smia.
Related Issues (20)
- Chapter 11 Partitions have leader brokers without a matching listener.
- Cannot build chapter 5 image HOT 2
- Chapter 8 - Working with Spring Cloud Gateway, can't call another Service with Rest using the Gateway port.
- CHAPTER 9: ZONE YOUR SERVICES INTO A PUBLIC API AND PRIVATE API
- Have you ever tried to run your code? HOT 1
- KeycloackRestTemplate with service discovery capabilities HOT 1
- Chapter 5 Licensing service doesn't read properties from config server HOT 1
- Chapter 10 docker-compose.yml changes to run on MAC
- Chapter 7: management.health.circuitbreakers.enabled should be set to true
- Cant run app from docker compose file.
- Chapter 9: Information about how to propagate token when using Feign client not provided HOT 5
- Chapter 5: cannot get vault kv value that added in vault ui HOT 2
- Chapter 5: configuration property value is wrong in this code repository HOT 1
- suggestions for this book
- Is DB auto-populated? HOT 1
- Build Failure When Running "mvn clean package dockerfile:build" HOT 1
- Issues with generating tokens to access organization services HOT 1
- Cannot start project HOT 2
- Error I'm facing in Chapter 5 section 5.2.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manning-smia.