Ingenious! A very welcome alternative to numerous tutorials that focus on syntax ("put @... in your file"). Instead, we are given a perspective on what (and why) you can (and should) do with it.
WOW nice bro !! all 3 courses are exceptionally good. but seems now the things have been changed with Spring Boot 2.4 specially latest Spring Cloud version (2020) does not support most Netflix technologies. Please provide a separate video to upgrade our self to latest Spring Boot and Spring Cloud. Thanks !!
5:41 Changing String to Map gives error while starting server. Please check. Failed to bind properties under 'db.connection' to java.util.Map: Reason: No converter found capable of converting from type [java.lang.String] to type [java.util.Map] Action: Update your application's configuration
Thank you for the great tutorial! ❤ I have a question Is it good idea to have property of a list 1000 items configured as externalize This file is about 100kb My plan is to easily update items without restarting app and no additional storage Thank you.
Hey! Just had a thought about using records for these @ConfigurationProperties instead of a POJO. Could that be a thing (considering the immutability of records)
I am using ConfigurationProperties and I have externalized these config values. Once I change value in git I’m calling actuator refresh endpoint to get latest value. If I send request to get updated values then it is failing intermittently. My app is deployed in pcf with 4 instance. Is it something like latest config got updated in few instance that’s why it is failing intermittently?
what you have showed i only get how to print value which is present in application.properties in browser. what you have explained it is basic of basic you missed how we gonna use multiple connection in project by using those annotation
I have two configurations. Let's say A & B. I want to load either one of them depending on some value in a properties file? Is it possible? Or any other way you know to load only one at a time? Thanks
As, of Spring Boot 2.2, Spring finds and registers @ConfigurationProperties classes via classpath scanning. Therefore, there is no need to annotate such classes with @Component (and other meta-annotations like @Configuration) or even use the
Hi sir, Pls explain why get method not accepting requestBody in spring boot. If I use postman data will reach to request body If I use resttemplate data will be empty. Please explain me. I'm facing issue in production
Hi, Where can I save password?, I know it's not good to save cleartext password in property file and if I use jsypt, then I have to store password in sourcecode which is also not secure, Then where can I save it??
I got an error : "No converter found capable of converting from type [java.lang.String] to type [java.util.HashMap]" I've added @Configuration and @ConfigurationProperties("db") at DbSettings class and added @Autowired at it's private property at controller class. Anyone having the same issue? (btw I'm using Java 16 and Spring Boot 2.5.1
If I have these two files: - application-prod[.]properties - application-stage[.]properties I want to change or switch towards the stage/test one but both have the same db properties in them. Will that work? Or how can I do the switch?
Ingenious! A very welcome alternative to numerous tutorials that focus on syntax ("put @... in your file"). Instead, we are given a perspective on what (and why) you can (and should) do with it.
I like the way when you say what are we going to discuss next and why we need it👌👌👌👌
My best microservice mentor.
Your teaching method is just incredible Koushik sir, really fantastic. You have taught me alot.
The way you explain simply awesome. I always prefer to watch your videos. Thanks a lot
you are rockstar Koushik :-)
It's really good, manythings I don't know before but now definitely I'm gona use it.
@
Java Brains : are you using any UI plugins or you have created the UI ?
You are Awesome Bro You are A Hero You ROCK THE WORLD BRO YOU ARE SUPER AND THE BEST
WOW nice bro !! all 3 courses are exceptionally good. but seems now the things have been changed with Spring Boot 2.4 specially latest Spring Cloud version (2020) does not support most Netflix technologies. Please provide a separate video to upgrade our self to latest Spring Boot and Spring Cloud. Thanks !!
Merci, J'adore c'est super bien expliqué
5:41 Changing String to Map gives error while starting server. Please check.
Failed to bind properties under 'db.connection' to java.util.Map:
Reason: No converter found capable of converting from type [java.lang.String] to type [java.util.Map]
Action:
Update your application's configuration
Hi Koushik, what browser extension you using to display the response as JSON/Raw Data/Headers
Simply the best
at 4:17 you returned dbsettings.hostport(). what if i want to return dbsetting ??It gives exception
why are you not autowiring in the constructor?
@Value will check automatically for type match??
yes
Nicely explained
In DBSetting class, you changed the 'connection' datatype to 'Map' , Why? Will be automatically converted into Key-Value pairs ?
yes, that is what. After converting type to map, my things stopped working. Server refuse to start now but with String type it is working fine.
@@kaushalmzp You can add map properties in application properties by a different approach, like
db.connection.username=xyz
db.connection.password=abc
Thank you for the great tutorial! ❤
I have a question
Is it good idea to have property of a list 1000 items configured as externalize
This file is about 100kb
My plan is to easily update items without restarting app and no additional storage
Thank you.
Hey! Just had a thought about using records for these @ConfigurationProperties instead of a POJO. Could that be a thing (considering the immutability of records)
Hi koushik, what are endpoints actually????
end point are nothing but some third party services URL to connect
Thank you for the lesson. Can you tell me the best way, if my property values are in db, and I want to load them up onto a spring bean on app startup.
Yehh Nice Explanation
3:35 Configuration annotation may not be needed, ConfigurationProperties is enough, I think
Hi sir, if we change property value in properties file,do we need to restart the server in Uat or production server.
yes it needs restart.
How to load different property file in spring boot each request dynamically
??
I am using ConfigurationProperties and I have externalized these config values. Once I change value in git I’m calling actuator refresh endpoint to get latest value. If I send request to get updated values then it is failing intermittently. My app is deployed in pcf with 4 instance. Is it something like latest config got updated in few instance that’s why it is failing intermittently?
How can I set a default value to @Configuration bean member variables?
Nice Explanation....can we add each others channel as a featured channel? wanted to know your thoughts...
what you have showed i only get how to print value which is present in application.properties in browser. what you have explained it is basic of basic you missed how we gonna use multiple connection in project by using those annotation
Hi, in your tutorial you had my.some and my.list.values. How we can create @ConfigurationProperties("my") class? How to resolve my.list.values?
use @Value annotation for this variable
I have two configurations. Let's say A & B. I want to load either one of them depending on some value in a properties file? Is it possible? Or any other way you know to load only one at a time? Thanks
Do you get the solution how to achieve this?
got answer for this? if so, plz tell us
Thank you😃
Why you used @Configuration instead of @ component to create a bean?
As, of Spring Boot 2.2, Spring finds and registers @ConfigurationProperties classes via classpath scanning. Therefore, there is no need to annotate such classes with @Component (and other meta-annotations like @Configuration) or even use the
Hi sir,
Pls explain why get method not accepting requestBody in spring boot.
If I use postman data will reach to request body
If I use resttemplate data will be empty.
Please explain me.
I'm facing issue in production
Use Post, you should not send requestbody with get.
@@rishikesh2111 that is get method, If I use post , it is working fine. Get should accept request body any option is there
@Ikbel benabdessamad thanks for your reply.
I tried that one, but it's not working.
Get method doesn't support request body.
why not use @Bean instead of @Configuration. someone plz explain the diffrerence
Hi,
Where can I save password?, I know it's not good to save cleartext password in property file and if I use jsypt, then I have to store password in sourcecode which is also not secure, Then where can I save it??
env variable
I got an error : "No converter found capable of converting from type [java.lang.String] to type [java.util.HashMap]"
I've added @Configuration and @ConfigurationProperties("db") at DbSettings class and added @Autowired at it's private property at controller class. Anyone having the same issue?
(btw I'm using Java 16 and Spring Boot 2.5.1
actuator is not working for me.. any clue..using gradle
implementation 'org.springframework.boot:spring-boot-starter-actuator'
Have you added the property value to expose all endpoints? I cover that in the video
@@Java.Brains yes I did : management.endpoints.web.exposure.include: "*"
If I have these two files:
- application-prod[.]properties
- application-stage[.]properties
I want to change or switch towards the stage/test one but both have the same db properties in them.
Will that work? Or how can I do the switch?
question is not clear Joyce. Please be clear.
First View👍
Thanks
For me application-.yml is not working. but application-.properties works. Is there anyone who is facing the same?
I love you :D
.
AWSOME
LOL
What?
Hi,
How to reload the properties in case of spring MVC (5.1.14 version in specific) ?