It is great explanation on profiles. Few properties are shared in all environments. How would you do that. I don't want to specify in all the environment configurations.
HI need advice here Trying to create stock reader micro service using maven 2.0.3 stable version but while adding Eureka discovery its not working and getting error also not able to get @EnableDiscoveryClient annotation any idea?
Quick question. How can I read the property "spring.message" and "server.port" from the config file instead of reading it from the application-dev.yml file.
What are the SpringBoot best practises: I want to use H2 and Postgres. H2 for testing my code and Postgres for actual DB. 1. All my masters in databases are loaded using TestClass. 2. I will first test the masters - creation and CRUD operation with H2. JPA, Servcie and Controllers. If success, then i want to move with point3. 3. I will load the masters in postgres. 4. I will rerun the test class - CRUD with Postgres. (Is this required) 5. The release the functionality. How to achieve this?
How to manage Dev and Prod profiles in production.how to manage prod profile in production.if possible make a video on how to configure prod and Dev environments.
Is there any way to get clear description of each and every method in spring oauth2. Why we need to override certain methods? Most of the times i dont understand why we set some properties?
You can read the Spring Documentation. not everything will be covered in Spring OAuth2 doc, since there are some basic understandings which are part of different documentation
Quick Question . If one wants to not use properties or yml files and instead derive the {$spring.message} from the Java Configration class, how would it be achieved ?
You have shown dev profile getting loaded from java config class..but if there are multiple profiles like sit, uat, qat...loading profile based upon env will require manual edit of java class , which is not recommended i think. please explain how can we do that without changing java class
Hi Sunny. The Java based config classes are useful in changing implementations based on Profiles. eg. If we need to test our app locally(say from Intellij), there could be some tweaks required compared to its runtime. For those its very helpful. properties and configurable items should be going to the application.yml or properties as i showed in the initial part
RequestMapping was added at the Class level of the RestController and GetMapping was added at the Method level. This is how the Target/scope of the annotations are defined in Spring, so we can use only at that level
you should have explained how to do this without IDE, because on cloud instances like EC2 we cant do anything using IDE, this video was a waste of my time!
I just wanted to let you know that this was a very good video. You are a natural for explaining things. keep up the good work!
Very helpful. This explains it so very clearly. Thanks for posting.
Thank a lot team for this video. It is indeed very useful. Please keep posting.
thank you !, you help us a lot with this video
Can you make a video on how to debug spring boot app?Also on remote debugging
Very good explanation.
Thanks Sir :) This topic was one of my requested topic.. I'm happy that you have considered my request.. It's come up good :)
awesome ❤
This is excellent tutorial on this topic
Can you make a video of profile specific to database.
It is great explanation on profiles. Few properties are shared in all environments. How would you do that. I don't want to specify in all the environment configurations.
HI need advice here Trying to create stock reader micro service using maven 2.0.3 stable version but while adding Eureka discovery its not working and getting error also not able to get @EnableDiscoveryClient annotation any idea?
Quick question. How can I read the property "spring.message" and "server.port" from the config file instead of reading it from the application-dev.yml file.
Hi, how about if I want to build my spring boot. Is it possible to spesify spring.profiles.active when I build my spring ?
Sir how we run spring boot test from command line with profiles ?
Can you highlight on STS on how you changed the profile?
nice explanation , thanks for the video
Good explanation , thankyou
It's good explanation
Awesome
you are a legend :D
Spring profile with PCF. Can you quickly explain how can we do that ?
Can you upload an video on emailing using spring boot with html template
I have questions that:
How can we package this project to a war file ?
And how to set active profiles when we package ?
1. Change packaging in pom.xml to war.
2. You can set it via application.properties or application.yml
How to read text file outside resources folder in spring mvc
Good one
What are the SpringBoot best practises: I want to use H2 and Postgres. H2 for testing my code and Postgres for actual DB.
1. All my masters in databases are loaded using TestClass.
2. I will first test the masters - creation and CRUD operation with H2. JPA, Servcie and Controllers. If success, then i want to move with point3.
3. I will load the masters in postgres.
4. I will rerun the test class - CRUD with Postgres. (Is this required)
5. The release the functionality.
How to achieve this?
Hi Ajay , Thanks for such a nice tutorial. Could you please demonstrate about "Consul Service Discovery" in your future videos.Thanks Again :)
Sure
Thanks so much, this helps a lot
Hi,
what is the difference between .properties and .yml ? what scenario we have to use
could you pls explain . :)
both we can use for profiles right
There s already video about that. Check out that in the channel
Actually both are same... But yml file will give you more readability.
Yml files internally converts to property file only
How to manage Dev and Prod profiles in production.how to manage prod profile in production.if possible make a video on how to configure prod and Dev environments.
It's the same way as I showed.
hello ajay can you make a tutorial about Microbenchmarking with spring boot (JMH) ? thank you
Sure mojar
suppose you don't have IntelliJ how you would execute from cmd ?? You can't write in intelliJ sprng.active.profile = production correct?
Yes wrap it with -D like this -Dspring.profiles.active=production
Is there any way to get clear description of each and every method in spring oauth2. Why we need to override certain methods? Most of the times i dont understand why we set some properties?
You can read the Spring Documentation.
not everything will be covered in Spring OAuth2 doc, since there are some basic understandings which are part of different documentation
Can you share share some docs or urls
Try this - projects.spring.io/spring-security-oauth/docs/oauth2.html
Quick Question . If one wants to not use properties or yml files and instead derive the {$spring.message} from the Java Configration class, how would it be achieved ?
You can pass it via System variables during startup
Thank You!
Thank you sir
cool!
do yo have any tutorial series on spring cloud
Yes satya. There is a playlist called Spring Cloud. Take a look at it
ruclips.net/video/-luHIZJ6or0/видео.html
thanks for your response. is this the videos series?
You have shown dev profile getting loaded from java config class..but if there are multiple profiles like sit, uat, qat...loading profile based upon env will require manual edit of java class , which is not recommended i think. please explain how can we do that without changing java class
Hi Sunny. The Java based config classes are useful in changing implementations based on Profiles.
eg. If we need to test our app locally(say from Intellij), there could be some tweaks required compared to its runtime. For those its very helpful.
properties and configurable items should be going to the application.yml or properties as i showed in the initial part
Is it possible from the maven pom.xml also instead of changing the java class
Can you explain spring boot conditional
sure
can you explain springboot cache..?
Its done. you can check my channel for that video
thx
Dynamically how to pick the properties file at runtime
You will have write custom loaders
[WARNING] The requested profile "dev" could not be activated because it does not exist. This message I am getting and not working with dev port
why did you use @RequestMapping instead of @Getmapping
RequestMapping was added at the Class level of the RestController and GetMapping was added at the Method level. This is how the Target/scope of the annotations are defined in Spring, so we can use only at that level
Tech Primers thanks man
you should have explained how to do this without IDE, because on cloud instances like EC2 we cant do anything using IDE, this video was a waste of my time!