Git Product home page Git Product logo

Comments (8)

Will-Estes avatar Will-Estes commented on September 17, 2024 6

Add to your POM. This fixed mine.

		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-starter-bootstrap</artifactId>
		</dependency>

from manning-smia.

Will-Estes avatar Will-Estes commented on September 17, 2024 4

@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.

Will-Estes avatar Will-Estes commented on September 17, 2024 1

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 ?

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.

hannah23280 avatar hannah23280 commented on September 17, 2024

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.

hannah23280 avatar hannah23280 commented on September 17, 2024

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.

duydoanx avatar duydoanx commented on September 17, 2024

You can see the answer here: https://stackoverflow.com/a/65009480

from manning-smia.

AnshuSoni avatar AnshuSoni commented on September 17, 2024

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.

Alphabtw00 avatar Alphabtw00 commented on September 17, 2024

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 ?

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.