Spring Boot: Working With External Property Files and Configuration

preview_player
Показать описание
In this video we will see how Spring boot can resolve external files, how to refer to multiple property files and how spring resolves conflicts. We will how it provides a typesafe property configuration as well as how to add validations to these properties.
You can download the source code at the following github url
Рекомендации по теме
Комментарии
Автор

The best part of this video is in a short time the presenter has explained many good things very effectively.

ashishmondal
Автор

Thank you so much.. by using your video i have resolved major issue in my project..

veeralakshmi
Автор

Sir, you are awesome, still if you think that why there are no much like its because ur explain such way that ppl used carry way and be very happy and forget to like... But must say everybody those who seen your all videos have been liked much...I Am big fan of you... Thanks for all your hard work and putting content for rest of the world

br
Автор

Thank you very much! It was very helpful. I had to use @Value("#{'${truckconfigurator.make}'.split(', ')}") to read a list of comma-separated values. This is not at all user readable. Creating this TruckConfigurator class and using it with getters and setters is more readable...

samarthurs
Автор

How can we read values from arguments and use those values to load the data source dynamically in spring data jpa? Ex: if i pass abc as user and pwd it should load that schema of the db and if something else then that schema like wise.

rajivperera
Автор

Is there a way to configure the propertysource path as well? Basically what of we want to use a network shared path and it's different for different environment

itsmerau
Автор

Do you have any example for how to read Dependency Jar referring to its own application.properties?

rajv
Автор

Nice. Is it a way to get updated values of properties without restarting the application ? I did with Apache library with java Properties.

rsrini
Автор

Do you have an example where I can get the properties's file path from en environment variable of the OS?

ramiroherrera
Автор

Hi. I have a problem with dates. What is the right configuration in application.properties for time zone Santiago of Chile. I have this error: The server time zone value 'Hora est. Sudamérica Pacífico' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specific time zone value if you want to utilize time zone support.

alexchile
Автор

thanks man ..but the properties should be loaded the like file ....harded code in MyProperites bcz the location can change any time

johnwick-ujqm
Автор

How to refresh those external properties file without restart??

VijayKumar-svzd
Автор

How to mock property value for the below class variable from Junit test

Class Employee{
@Value("${data.empName}")
private String empName;
}

akashm
Автор

It will execute even not program because the ouside application.properties will over ride. I need it from json. please can you post that video

vijaych
Автор

how can I load properties from en enviroment variable of the OS like this: @propertySource(value = "file:#{ systemEnviroment['MY_ENV'] }")

ramiroherrera
Автор

how to remove hardcode location in pojo class

anilkumarkaramsetti
Автор

// Not working.

Please tell me what is wrong i am doing?

shankardayal
Автор

thanks for this...but on github your properties file is empty

atlxzsx