Using property file config with Spring Boot - Microservice configuration with Spring Boot [03]

preview_player
Показать описание

Learn how to add configuration in property files and access the values from the code in your Spring Boot application using the @Value annotation.

#JavaBrains #Microservices #SpringBoot #Configuration #Course
Рекомендации по теме
Комментарии
Автор

How do I bring a group of properties into a POJO automatically without using dozens of @value?

jeffpalmer
Автор

Great video sir..One sincere request If possible could you please provide information and learning on Springboot with MQ and Kubernetes?

simawdf
Автор

What is the advantage of having the config file outside of the spring boot jar? I suspect that would allow us to do a manual change of the config file. Correct? What about using an endpoint that exposes an api to make changes to the values in the application.properties file which will be inside a spring boot jar? Waiting to watch your next video. Thanks !

BekTesfa
Автор

wow, everyday new learnings..Thank you koushik

sathishkumar
Автор

the below application.properties file is in a consul key/value store: name=ben
the below is the application.properties file in a microservice: name=sam
the microservice has a bean with the below value: @value("${name}")


what is the answer of this question?

vrushalipatil
Автор

please cover central authertication also in this. Thanks kaushik

arjitmishra
Автор

How do i display custom validation for @NotNull (typeMismatch)? How do i set custom validation message in properties file?

mr.techno-era
Автор

Hi Kaushik, I have a question, I am having a maven multimodule spring boot project, like commons-module, data-module, business-module, webservice-module(entrypoint), now I have a messages.properties which contains some error messages and I have put that into commons-module and I have configured MessageSource and LocalValidatorFactoryBean bean in commons-module only, now I want to access some keys of messages.properties in my business-module, how can I do that

tanayakarmakar
Автор

I have defined a url which I want some of the classes to read that url.. so what I did is I mentioned that url in application.properties file .. also I added @ value annotation and did exactly same thing in all the classes.. but it's coming null.. when I try to get it.. any suggestions?

kapiljain
Автор

You are Awesome Bro You are A Hero You ROCK THE WORLD BRO YOU ARE SUPER AND THE BEST

mohammedshabbirahmed
Автор

Thank you for your video! Is it possible to use a property specified in the .properties file and then assign this value both to POM file and to a Java class?

For example: create a property called "api-version=1.0.0", use this value in the POM file so that when we generate the JAR file this value will be used instead of "0.0.1-SNAPSHOT". Also, because I use a custom Header ( httpServletResponse.addHeader("API-Version", "1.0.0") ), I want to add here as well the value of the api-version. I know that I can go directly in the POM file and change the value of but I want to create a property that will change both POM and a header value at the same time

I need somehow to globalize the property in order to use it in POM file and in another Java class where I create the custom header.

Thank you

ainigma
Автор

please create the video with your visual, that helps and adds the focus, Awesome content apart from that

ersarthaksethi
Автор

How do i set the value of @CircuitBreaker annotation properties such as maxAttempts from the value on the properties file?

darkenergy
Автор

is there any way to access Dependency Jar referring to its own application.properties?

rajv
Автор

My Project is running and I can see output in Browser, But I am not able to see jar file

rohithakash
Автор

Hi, Can we create our custom properties file say login.properties & how to load it?

kiddo
Автор

Awesome video.. Please sir make some video on Jenkins CICD process

talktoanny
Автор

Hai sir,
We need to select a folderpath by using webpage and also send path of the folder to one string or send in another location

madhucharan
Автор

teacher can u teach me microservice transactions

smithdragon
Автор

Thank you sir for great videos and learning..

Saurabh-cw