Spring Boot Configuration Properties: Working with Lists & Maps

Поделиться
HTML-код
  • Опубликовано: 31 май 2024
  • In this tutorial you will learn how to create configuration properties in Spring Boot. This will bind properties to a type (class or record) and you will learn how to work with maps and lists.
    🔗Resources & Links mentioned in this video:
    GitHub Repo: github.com/danvega/list-map-p...
    👋🏻Connect with me:
    Website: www.danvega.dev
    Twitter: / therealdanvega
    Github: github.com/danvega
    LinkedIn: / danvega
    Newsletter: www.danvega.dev/newsletter
    SUBSCRIBE TO MY CHANNEL: bit.ly/2re4GH0 ❤️
  • НаукаНаука

Комментарии • 23

  • @WisomofHal
    @WisomofHal Месяц назад +1

    Good stuff! Thanks for sharing!

    • @DanVega
      @DanVega  Месяц назад +1

      Thanks for watching!

  • @aziztolearn
    @aziztolearn 4 месяца назад +2

    hit that subscribe button, this channel should have 100K in this year

    • @DanVega
      @DanVega  4 месяца назад +1

      That is my pipe dream goal for this year 🤩 Thank you!

  • @user-bx2gj1zh3q
    @user-bx2gj1zh3q 3 месяца назад +1

    Just subscribed. Good content Dan. I highly appreciate your content

  • @jetlavi
    @jetlavi 4 месяца назад +3

    Thank you, Dan.. very useful! :D

  • @addy9360
    @addy9360 4 месяца назад +1

    Great tutor! I love your videos

  • @calintamas7576
    @calintamas7576 4 месяца назад

    Super nice and new! Thx, Dane!

  • @AleksandarT10
    @AleksandarT10 4 месяца назад

    Great video, helpful stuff!

  • @erfannavab9805
    @erfannavab9805 4 месяца назад

    It was great. Thanks

  • @svalyavasvalyava9867
    @svalyavasvalyava9867 3 месяца назад

    Thank you infinitely for such an interesting and useful video 😊
    I have always been defining properties in the application.properties file, however, lately I have tried to define in the application.yaml file and I find it very convenient, too 😊

  • @SunidhiBatra-xs8zi
    @SunidhiBatra-xs8zi 18 дней назад

    Can you give us an example for Map to be written in yaml? That would help as this ones looks tricky

  • @ArnaudPOUTIEU
    @ArnaudPOUTIEU 4 месяца назад

    Gratitudes Dan!

  • @Muescha
    @Muescha 4 месяца назад +1

    Interesting. Why I don't need to add the key "url" for the website record?

  • @rbcm1
    @rbcm1 4 месяца назад

    The @Autowire annotation in the tests is redundant/not necessary since some time, right?

  • @revetastogne
    @revetastogne 4 месяца назад

    Hi Dan! I'm wondering what provides an autocomplete for Spring properties in intellij? I don't have autocomplete for properties and would like to install it. Thanks in advance!

    • @andreas4115
      @andreas4115 2 месяца назад

      Intellij Idea Ultimate. The community edition doesnt have spring specific autocomplete

  • @freebusdoctor
    @freebusdoctor 4 месяца назад

    Sir, may I ask a question? Why do we use the @Autowired annotation instead of constructor injection? Are they the same? Thanks for enlightening.

    • @user-og7de8ih4f
      @user-og7de8ih4f 4 месяца назад

      Yes they are same

    • @konkos5473
      @konkos5473 4 месяца назад +1

      @@user-og7de8ih4f [As far as I am aware!] Technically they are not the same. Both accomplish the same goal. However, field injection uses Java Reflection which costlier than constructor injection. In addition, I believe field injection can potentially cause issues during testing due to the manner the object is initialized

    • @Muescha
      @Muescha 4 месяца назад +1

      I know the advice is to.use constructor injection
      That's why I also interested to know why in test wore the field injection is used.

    • @JamesStansell
      @JamesStansell 4 месяца назад +1

      @@Muescha my understanding is that field injection is fine within the test itself, because you are not going to write a test for the test.

  • @m3hdim3hdi
    @m3hdim3hdi 2 месяца назад

    what's the name of this intellij theme?