I used the spring boot initializer and created a bean using the @Component. I followed suit as to how you read the key from the application.properties yet I am still getting the IllegalArgumentException: Could not resolve placeholder
@infybuzz2 жыл бұрын
Is your package added in component scan ?
@lf93362 жыл бұрын
@@infybuzz yes it was, I tried other means from reading values from the application.properties and it worked. But now I cannot reproduce the error.
@avinashgodvin99002 жыл бұрын
Very informative
@infybuzz2 жыл бұрын
Thanks...
@manjiri35392 жыл бұрын
Hi... Good explaination. I have downloaded Spring boot add on through marketplace. And I created spring boot starter project. But I am not able to open application.properties. It shows "Failed to create the parts controls". javax/ inject/ provider in error log.
@ravikumarreddy53383 жыл бұрын
I can't able to read the value in @service class
@infybuzz3 жыл бұрын
have you followed the steps shown in video ?
@ravikumarreddy53383 жыл бұрын
@@infybuzz yess its working fine now.. Thanks
@infybuzz3 жыл бұрын
@@ravikumarreddy5338 You are welcome Ravi.
@AbhijeetKumarViVi3 жыл бұрын
I want to learn from starting with spring do you have any course on udemy.
@infybuzz3 жыл бұрын
Yes Abhijeet. You can take my course here - bit.ly/3nUuMwH
@yugadev6694 жыл бұрын
Very useful and nice
@infybuzz4 жыл бұрын
Thanks...
@BOTGAMERSTAMIL2 жыл бұрын
@value is not working in service layer please help
@infybuzz2 жыл бұрын
do as per shown in the video and it will work
@AdityaDahiya99 Жыл бұрын
But how does @Value know which properties file to read from?
@infybuzz Жыл бұрын
it's always about application.properties file if you know Spring Boot
@AdityaDahiya99 Жыл бұрын
@@infybuzz sometimes the application.yml too, my questions is are these all key value pairs in these files loaded in the classpath or somewhere?