Profiles in Spring Boot | Spring Profiles | Tech Primers

  Рет қаралды 72,764

Tech Primers

Tech Primers

Күн бұрын

Пікірлер: 68
@ZooyZoborne
@ZooyZoborne 6 жыл бұрын
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!
@guitarDad100
@guitarDad100 2 жыл бұрын
Very helpful. This explains it so very clearly. Thanks for posting.
@narendra9903
@narendra9903 6 жыл бұрын
Can you make a video on how to debug spring boot app?Also on remote debugging
@ashitghosh8602
@ashitghosh8602 5 жыл бұрын
Can you make a video of profile specific to database.
@jane_9318
@jane_9318 2 жыл бұрын
thank you !, you help us a lot with this video
@joydeepsur8203
@joydeepsur8203 6 жыл бұрын
Thank a lot team for this video. It is indeed very useful. Please keep posting.
@rexsam3134
@rexsam3134 4 жыл бұрын
Can you highlight on STS on how you changed the profile?
@pavankumar-si2jv
@pavankumar-si2jv 5 жыл бұрын
Very good explanation.
@srinivasthutika6079
@srinivasthutika6079 6 жыл бұрын
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.
@unemployedcse3514
@unemployedcse3514 4 ай бұрын
awesome ❤
@chinmaykshah
@chinmaykshah 6 жыл бұрын
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?
@pandemicplayseverything8268
@pandemicplayseverything8268 4 жыл бұрын
Hi, how about if I want to build my spring boot. Is it possible to spesify spring.profiles.active when I build my spring ?
@SanthoshkumarNagulanchi
@SanthoshkumarNagulanchi 4 жыл бұрын
This is excellent tutorial on this topic
@MusicalSaikat
@MusicalSaikat 4 жыл бұрын
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.
@kamalkant3225
@kamalkant3225 3 жыл бұрын
Sir how we run spring boot test from command line with profiles ?
@siddhantpatil8075
@siddhantpatil8075 4 жыл бұрын
How to read text file outside resources folder in spring mvc
@bathulanagendra4621
@bathulanagendra4621 6 жыл бұрын
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.
@TechPrimers
@TechPrimers 6 жыл бұрын
It's the same way as I showed.
@tuoan5533
@tuoan5533 4 жыл бұрын
I have questions that: How can we package this project to a war file ? And how to set active profiles when we package ?
@TechPrimers
@TechPrimers 4 жыл бұрын
1. Change packaging in pom.xml to war. 2. You can set it via application.properties or application.yml
@gauravdighe4117
@gauravdighe4117 6 жыл бұрын
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?
@jatinsharma3792
@jatinsharma3792 2 жыл бұрын
suppose you don't have IntelliJ how you would execute from cmd ?? You can't write in intelliJ sprng.active.profile = production correct?
@TechPrimers
@TechPrimers 2 жыл бұрын
Yes wrap it with -D like this -Dspring.profiles.active=production
@balrajmys
@balrajmys 6 жыл бұрын
Thanks Sir :) This topic was one of my requested topic.. I'm happy that you have considered my request.. It's come up good :)
@vedprakashjadhav6820
@vedprakashjadhav6820 5 жыл бұрын
Can you upload an video on emailing using spring boot with html template
@009freestyler
@009freestyler 5 жыл бұрын
Spring profile with PCF. Can you quickly explain how can we do that ?
@mojardokan5238
@mojardokan5238 6 жыл бұрын
hello ajay can you make a tutorial about Microbenchmarking with spring boot (JMH) ? thank you
@TechPrimers
@TechPrimers 6 жыл бұрын
Sure mojar
@shivammishra009
@shivammishra009 6 жыл бұрын
nice explanation , thanks for the video
@VRRM
@VRRM 6 жыл бұрын
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?
@TechPrimers
@TechPrimers 6 жыл бұрын
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
@VRRM
@VRRM 6 жыл бұрын
Can you share share some docs or urls
@TechPrimers
@TechPrimers 6 жыл бұрын
Try this - projects.spring.io/spring-security-oauth/docs/oauth2.html
@ngauravmalhotra
@ngauravmalhotra 4 жыл бұрын
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 ?
@TechPrimers
@TechPrimers 4 жыл бұрын
You can pass it via System variables during startup
@SpiritualManish
@SpiritualManish 6 жыл бұрын
Hi Ajay , Thanks for such a nice tutorial. Could you please demonstrate about "Consul Service Discovery" in your future videos.Thanks Again :)
@TechPrimers
@TechPrimers 6 жыл бұрын
Sure
@deviprasadpatnaik6837
@deviprasadpatnaik6837 6 жыл бұрын
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
@TechPrimers
@TechPrimers 6 жыл бұрын
There s already video about that. Check out that in the channel
@rajkumarchilukuri878
@rajkumarchilukuri878 5 жыл бұрын
Actually both are same... But yml file will give you more readability. Yml files internally converts to property file only
@vijayr6540
@vijayr6540 5 жыл бұрын
Good explanation , thankyou
@sunnychouhan1228
@sunnychouhan1228 6 жыл бұрын
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
@TechPrimers
@TechPrimers 6 жыл бұрын
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
@techieszone3704
@techieszone3704 6 жыл бұрын
Is it possible from the maven pom.xml also instead of changing the java class
@satyanarayana8104
@satyanarayana8104 5 жыл бұрын
It's good explanation
@tdswagspike1491
@tdswagspike1491 4 жыл бұрын
you are a legend :D
@sumanthvarada
@sumanthvarada 5 жыл бұрын
Good one
@satyanarayanajammala5129
@satyanarayanajammala5129 6 жыл бұрын
do yo have any tutorial series on spring cloud
@TechPrimers
@TechPrimers 6 жыл бұрын
Yes satya. There is a playlist called Spring Cloud. Take a look at it
@satyanarayanajammala5129
@satyanarayanajammala5129 6 жыл бұрын
kzbin.info/www/bejne/Y53YeXyQf5uiqJI thanks for your response. is this the videos series?
@zhengshenyu
@zhengshenyu 5 жыл бұрын
Thanks so much, this helps a lot
@dileepalla6769
@dileepalla6769 6 жыл бұрын
Can you explain spring boot conditional
@TechPrimers
@TechPrimers 6 жыл бұрын
sure
@venkatanagaprathapyelugula7738
@venkatanagaprathapyelugula7738 4 жыл бұрын
[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
@arunkumart9281
@arunkumart9281 6 жыл бұрын
Dynamically how to pick the properties file at runtime
@TechPrimers
@TechPrimers 6 жыл бұрын
You will have write custom loaders
@tejach4567
@tejach4567 6 жыл бұрын
can you explain springboot cache..?
@TechPrimers
@TechPrimers 6 жыл бұрын
Its done. you can check my channel for that video
@abhilashkokkonda1713
@abhilashkokkonda1713 4 жыл бұрын
Awesome
@osamaalnajar9360
@osamaalnajar9360 6 жыл бұрын
why did you use @RequestMapping instead of @Getmapping
@TechPrimers
@TechPrimers 6 жыл бұрын
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
@osamaalnajar9360
@osamaalnajar9360 6 жыл бұрын
Tech Primers thanks man
@rahulgoti3864
@rahulgoti3864 6 жыл бұрын
Thank You!
@venuk7122
@venuk7122 6 жыл бұрын
Thank you sir
@simplechannel7859
@simplechannel7859 5 жыл бұрын
cool!
@nurlanmrahov198
@nurlanmrahov198 3 жыл бұрын
thx
@harshudasi9032
@harshudasi9032 2 жыл бұрын
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!
Spring Boot with HTTPS Example | Tech Primers
14:50
Tech Primers
Рет қаралды 83 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 54 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 14 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 22 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 46 МЛН
Actuators in Spring Boot | Tech Primers
17:17
Tech Primers
Рет қаралды 49 М.
How to do logging in Spring Boot - Brain Bytes
13:46
Java Brains
Рет қаралды 269 М.
Spring Cache Example using EhCache in Spring Boot | Tech Primers
20:14
REST API Documentation using Swagger2 in Spring Boot | Tech Primers
26:27
The New Outlook is TERRIBLE
20:19
Chris Titus Tech
Рет қаралды 25 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 54 МЛН