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
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 !
Once the application is on live, only specific production team mates have access to make configuration changes, they can't hit to your end point url and make changes that easily. It's might need encrypted security token to access any endpoint url. In banking domains, Every endpoint url must pass security test, else product will not be given sign off . So it's better to have property file than endpoint url.
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?
@@Java.Brains Great .. thanks.. one small request.. can your interface be changed to bright mode.. thought it could be easy to ready for many.. may be you can post a vote and change if required.
Java Brains ty. Actually I am doing a project in my college and I am trouble in understanding zuul routes, cors policy especially the override path and preauthorise filters. Any help from you is appreciated. Ty sir
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 0.0.1-SNAPSHOT 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
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?
@@Java.Brains interviewer asked question related to Ratelimiter , if there are multiple clients some have basic plan , premium client, we need to restrict their request. After googling it, i found that there are guvava api for request rate limiter( eg 10 request per 5 second.. ) apart from that... Spring-boot- starter-throtller dependence is also there. Above question was asked in intervew I didn't hear this before. I just googled it.it was there.
Hi Kaushik, I am fan of your videos. You are the main reason for my professional success as a java developer, thank you is a very very small word for your help. Is it possible for you to share a time line or a schedule for the release of this complete playlist?
I plan to upload one video each day. I have a total of 16 tutorials for this course. I’m halfway done with rendering them all out, but I should be able to catch up and keep to the one-a-day schedule
Eagerly waiting for next videos.
Nice explanation Kaushik
wow, everyday new learnings..Thank you koushik
You are Awesome Bro You are A Hero You ROCK THE WORLD BRO YOU ARE SUPER AND THE BEST
Nice work JB
wonderfully explained. Thanks
How do I bring a group of properties into a POJO automatically without using dozens of @value?
is there any way to access Dependency Jar referring to its own application.properties?
Awesome video.. Please sir make some video on Jenkins CICD process
Hi , Can we create our custom properties file say login.properties & how to load it?
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
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
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 !
Once the application is on live, only specific production team mates have access to make configuration changes, they can't hit to your end point url and make changes that easily. It's might need encrypted security token to access any endpoint url. In banking domains, Every endpoint url must pass security test, else product will not be given sign off . So it's better to have property file than endpoint url.
please create the video with your visual, that helps and adds the focus , Awesome content apart from that
Thank you sir for great videos and learning..
Great video sir..One sincere request If possible could you please provide information and learning on Springboot with MQ and Kubernetes?
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?
How do i set the value of @CircuitBreaker annotation properties such as maxAttempts from the value on the properties file?
How do i display custom validation for @NotNull (typeMismatch)? How do i set custom validation message in properties file?
My Project is running and I can see output in Browser ,But I am not able to see jar file
simple and clean . Can this be followed in Yaml too ?
Yes! I’ll be covering yaml format as well in an upcoming video
@@Java.Brains Great .. thanks.. one small request.. can your interface be changed to bright mode.. thought it could be easy to ready for many.. may be you can post a vote and change if required.
that's really great
please cover central authertication also in this. Thanks kaushik
I’m not sure if authentication is in the scope for this course. Maybe I’ll cover it with content around API gateway and microservice security
Java Brains ty. Actually I am doing a project in my college and I am trouble in understanding zuul routes, cors policy especially the override path and preauthorise filters. Any help from you is appreciated. Ty sir
Thank you!!!
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 0.0.1-SNAPSHOT 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
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?
note 3:15
Nice explaiation sir.
Could you please create video for springboot +throttling. Concept with example. It will be helpful to crack interview
Thanks! I’ve covered thread handling of concurrent requests, fault tolerance and the bulkhead pattern in Level 2. Is that what you mean?
@@Java.Brains interviewer asked question related to Ratelimiter , if there are multiple clients some have basic plan , premium client, we need to restrict their request. After googling it, i found that there are guvava api for request rate limiter( eg 10 request per 5 second.. ) apart from that... Spring-boot- starter-throtller dependence is also there.
Above question was asked in intervew I didn't hear this before. I just googled it.it was there.
Hi Kaushik, I am fan of your videos. You are the main reason for my professional success as a java developer, thank you is a very very small word for your help. Is it possible for you to share a time line or a schedule for the release of this complete playlist?
I plan to upload one video each day. I have a total of 16 tutorials for this course. I’m halfway done with rendering them all out, but I should be able to catch up and keep to the one-a-day schedule
Java Brains Thank you so much Kaushik. I appreciate your hard work in getting the best content to us.
@@Java.Brains Great tutorials for us sir!
Joined in the membership program.👍🏻
teacher can u teach me microservice transactions
Put it in a manifest file