Spring Boot Secret Properties: How to store secrets in your Configuration Properties

preview_player
Показать описание
In this tutorial, you will learn how to use Spring Boot secret properties in your next application. When you define your own configuration properties you need to find a way to set secret properties. You can do this through command-line arguments or environment variables, but I often forget that they are there.

🔗Resources & Links mentioned in this video:

👋🏻Connect with me:

Рекомендации по теме
Комментарии
Автор

Be aware that unless you take certain steps, if you build your archive from IDE your secrets.yml file will be packaged in the final application archive.

ILyaCyclone
Автор

This was super helpful. I have been looking for a way to have .env files within Java and Spring boot. Coming from javascript as well its sooo easy. But you have made it so easy on this language as well. Thank You!

Natasx
Автор

Thanks a ton! This is helpful! I really did not know how to deploy in production as a personal project. This gives me new horizons to explore and learn!

SouravBanik
Автор

Great video!! Been looking for this and by far the best explanation.

Mexa
Автор

Super helpful, thanks for showing the production method, cleared all my doubts ❤

prethammuthappabs
Автор

This is great! Didn't know that such thing exists before this. I have just create new profile application file and put git ignore that file or pass those variables as environment variable 😅

drakenra
Автор

Great video sir... was searching for this kind of mechanism... Thank you Sir

AnantaAkash.Podder
Автор

Previously I just created a prod profile, set it as active before creating the jar, or add it to the command line args on production. If I didn't want to make those configs/credentials public, just ignored the prod file in gitignore
Including properties files is quite a nice addition, I might even use this to organize configurations in different files

amarildo-xyz
Автор

as always great content, can you please in the future make videos about testing integration and e2e pleasee, and please we need more content

michelchaghoury
Автор

Thank you 🎉🎉.
in our team with the help of spring-config-location, its operation group that would put config file near jars .
We never have operational environment config during coding . Imo its not good practice.

mostafahashemi
Автор

Hi!, nice video, it was useful for me, but I want to know if you have a similiar video where explain how to convert aws secrets in a configuration properties to use. Thanks

germinikkii
Автор

Hi, this is really gold, thank you

Thank you

coderlady_
Автор

This is a great tutorial. Learnt a lot from this. Thanks a lot.

One curious question: From where did you get this animated picture of your face? I want to generate too :) Can you share the link please?

computeranalyst
Автор

Can you show us the vault integration?

hamyazilim
Автор

@Dan Vega
Thank you for wonderful Video on Spring boot secrets with Java 17 version,
Could you help me how can we do same example for Java 8 version where we do not have record type is not present

bpnaiduu
Автор

Basically if I do the same with aws/azure cloud provider, I just need to make sure to have those properties in env, is that understanding correct ?

treerhym
Автор

If you have multiple devs working on the project how do you set them up with all of the secrets? Doesn't it become unmanageable?

DerylSpielman
Автор

How to solve my Java With Maven CI build fail because it can't resolve those variables?

pejko
Автор

is it possible to use classpath: or file: besides that optional: option?

abadongutierrez
Автор

How do you deal with Github workflows not working after doing this?

yelderiny