L
L
LoliDeveloper2021-08-13 13:32:04
Java
LoliDeveloper, 2021-08-13 13:32:04

How to store java application config file?

How to make it possible to write the address of the database in the config file and the application accessed it?
That is, if I change this line in the config, then the connection would change without recompiling the jar.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-08-13
@LoliDeveloper

Depends on what kind of application you have. For the simplest cases, there are properties . For enterprise-applications in one form or another, there is a context.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question