G
G
grv12017-10-19 12:56:21
Spring
grv1, 2017-10-19 12:56:21

How to take out the config file for the system administrator?

The project is written on sprin, it is launched on tomcat, you need to take out the config. files for the system administrator. So that when updating the war file, the settings remain the same.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kosarev, 2017-10-20
@grv1

What's the problem? The configuration files are moved to some permanent directory, and the application specifies the paths to these files. These paths can be passed through environment variables, through Tomcat context parameters (conf/context.xml). With the help of Spring Cloud Config , configuration files can generally be kept in a git repository and provided with access to them through config servers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question