Profiles in Spring Boot | Spring Profiles | Tech Primers

Поделиться
HTML-код
  • Опубликовано: 19 ноя 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.

  • @joydeepsur8203
    @joydeepsur8203 6 лет назад +1

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

  • @jane_9318
    @jane_9318 2 года назад

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

  • @narendra9903
    @narendra9903 6 лет назад +6

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

  • @pavankumar-si2jv
    @pavankumar-si2jv 5 лет назад +1

    Very good explanation.

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

  • @unemployedcse3514
    @unemployedcse3514 3 месяца назад +1

    awesome ❤

  • @SanthoshkumarNagulanchi
    @SanthoshkumarNagulanchi 4 года назад +1

    This is excellent tutorial on this topic

  • @ashitghosh8602
    @ashitghosh8602 5 лет назад +1

    Can you make a video of profile specific to database.

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

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

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

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

  • @kamalkant3225
    @kamalkant3225 3 года назад

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

  • @rexsam3134
    @rexsam3134 4 года назад

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

  • @shivammishra009
    @shivammishra009 6 лет назад +1

    nice explanation , thanks for the video

  • @vijayr6540
    @vijayr6540 5 лет назад

    Good explanation , thankyou

  • @satyanarayana8104
    @satyanarayana8104 5 лет назад +1

    It's good explanation

  • @abhilashkokkonda1713
    @abhilashkokkonda1713 4 года назад +1

    Awesome

  • @tdswagspike1491
    @tdswagspike1491 4 года назад +1

    you are a legend :D

  • @009freestyler
    @009freestyler 5 лет назад

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

  • @vedprakashjadhav6820
    @vedprakashjadhav6820 5 лет назад

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

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

  • @siddhantpatil8075
    @siddhantpatil8075 4 года назад

    How to read text file outside resources folder in spring mvc

  • @sumanthvarada
    @sumanthvarada 5 лет назад +1

    Good one

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

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

  • @zhengshenyu
    @zhengshenyu 5 лет назад +1

    Thanks so much, this helps a lot

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

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

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

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

  • @rahulgoti3864
    @rahulgoti3864 6 лет назад +1

    Thank You!

  • @venuk7122
    @venuk7122 6 лет назад +1

    Thank you sir

  • @simplechannel7859
    @simplechannel7859 5 лет назад +1

    cool!

  • @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 лет назад

      ruclips.net/video/-luHIZJ6or0/видео.html
      thanks for your response. is this the videos series?

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

  • @dileepalla6769
    @dileepalla6769 6 лет назад +1

    Can you explain spring boot conditional

  • @tejach4567
    @tejach4567 6 лет назад

    can you explain springboot cache..?

    • @TechPrimers
      @TechPrimers  6 лет назад

      Its done. you can check my channel for that video

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