Profiles in Spring Boot | Spring Profiles | Tech Primers

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 68

  • @ZooyZoborne
    @ZooyZoborne 6 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

    Very helpful. This explains it so very clearly. Thanks for posting.

  • @jane_9318
    @jane_9318 2 ปีที่แล้ว

    thank you !, you help us a lot with this video

  • @unemployedcse3514
    @unemployedcse3514 หลายเดือนก่อน +1

    awesome ❤

  • @narendra9903
    @narendra9903 6 ปีที่แล้ว +6

    Can you make a video on how to debug spring boot app?Also on remote debugging

  • @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.

  • @joydeepsur8203
    @joydeepsur8203 5 ปีที่แล้ว +1

    Thank a lot team for this video. It is indeed very useful. Please keep posting.

  • @ashitghosh8602
    @ashitghosh8602 5 ปีที่แล้ว +1

    Can you make a video of profile specific to database.

  • @pavankumar-si2jv
    @pavankumar-si2jv 5 ปีที่แล้ว +1

    Very good explanation.

  • @rexsam3134
    @rexsam3134 4 ปีที่แล้ว

    Can you highlight on STS on how you changed the profile?

  • @balrajmys
    @balrajmys 6 ปีที่แล้ว +1

    Thanks Sir :) This topic was one of my requested topic.. I'm happy that you have considered my request.. It's come up good :)

  • @SanthoshkumarNagulanchi
    @SanthoshkumarNagulanchi 4 ปีที่แล้ว +1

    This is excellent tutorial on this topic

  • @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 ?

  • @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.

  • @SpiritualManish
    @SpiritualManish 6 ปีที่แล้ว +1

    Hi Ajay , Thanks for such a nice tutorial. Could you please demonstrate about "Consul Service Discovery" in your future videos.Thanks Again :)

  • @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?

  • @vijayr6540
    @vijayr6540 5 ปีที่แล้ว

    Good explanation , thankyou

  • @tuoan5533
    @tuoan5533 4 ปีที่แล้ว +1

    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

  • @kamalkant3225
    @kamalkant3225 3 ปีที่แล้ว

    Sir how we run spring boot test from command line with profiles ?

  • @gauravdighe4117
    @gauravdighe4117 5 ปีที่แล้ว

    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?

  • @deviprasadpatnaik6837
    @deviprasadpatnaik6837 6 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      Actually both are same... But yml file will give you more readability.
      Yml files internally converts to property file only

  • @shivammishra009
    @shivammishra009 6 ปีที่แล้ว +1

    nice explanation , thanks for the video

  • @vedprakashjadhav6820
    @vedprakashjadhav6820 5 ปีที่แล้ว

    Can you upload an video on emailing using spring boot with html template

  • @satyanarayana8104
    @satyanarayana8104 5 ปีที่แล้ว +1

    It's good explanation

  • @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

  • @009freestyler
    @009freestyler 5 ปีที่แล้ว

    Spring profile with PCF. Can you quickly explain how can we do that ?

  • @bathulanagendra4621
    @bathulanagendra4621 6 ปีที่แล้ว +1

    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.

  • @mojardokan5238
    @mojardokan5238 6 ปีที่แล้ว +1

    hello ajay can you make a tutorial about Microbenchmarking with spring boot (JMH) ? thank you

  • @zhengshenyu
    @zhengshenyu 5 ปีที่แล้ว +1

    Thanks so much, this helps a lot

  • @sumanthvarada
    @sumanthvarada 5 ปีที่แล้ว +1

    Good one

  • @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

  • @abhilashkokkonda1713
    @abhilashkokkonda1713 4 ปีที่แล้ว +1

    Awesome

  • @siddhantpatil8075
    @siddhantpatil8075 4 ปีที่แล้ว

    How to read text file outside resources folder in spring mvc

  • @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 ปีที่แล้ว +1

      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 5 ปีที่แล้ว

      Is it possible from the maven pom.xml also instead of changing the java class

  • @satyanarayanajammala5129
    @satyanarayanajammala5129 6 ปีที่แล้ว +1

    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 ปีที่แล้ว

      th-cam.com/video/-luHIZJ6or0/w-d-xo.html
      thanks for your response. is this the videos series?

  • @dileepalla6769
    @dileepalla6769 6 ปีที่แล้ว +1

    Can you explain spring boot conditional

  • @tdswagspike1491
    @tdswagspike1491 4 ปีที่แล้ว +1

    you are a legend :D

  • @rahulgoti3864
    @rahulgoti3864 6 ปีที่แล้ว +1

    Thank You!

  • @venuk7122
    @venuk7122 6 ปีที่แล้ว +1

    Thank you sir

  • @tejach4567
    @tejach4567 6 ปีที่แล้ว

    can you explain springboot cache..?

    • @TechPrimers
      @TechPrimers  6 ปีที่แล้ว

      Its done. you can check my channel for that video

  • @simplechannel7859
    @simplechannel7859 5 ปีที่แล้ว +1

    cool!

  • @nurlanmrahov198
    @nurlanmrahov198 3 ปีที่แล้ว

    thx

  • @arunkumart9281
    @arunkumart9281 5 ปีที่แล้ว

    Dynamically how to pick the properties file at runtime

    • @TechPrimers
      @TechPrimers  5 ปีที่แล้ว

      You will have write custom loaders

  • @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

  • @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

  • @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!