r/learnjava • u/BrainThinkerMan • Sep 10 '26
configfile/ application properties explained
what is a config file, praticularly how does it relate to the computer?
is it like it specifies which os apis the program should use, or like what stuff in the actual os
the program to mount to?
ie i made a backend app, and i want it to go to a specific port on the computer and i want it to use a specific x on the computer.
is that what a config is?
0
Upvotes
View all comments
1
u/Lumethys Sep 11 '26
they are file where you configure your app.
"What can be configured?" you asked?
Almost anything you defined. Say, you have a feature you only want to turn on in the real production environment, like a payment system. You dont want to process real money when testing your code. So you can use a config file to enable or disable the feature.
or, maybe your app send mail, and you dont want to send real mail when testing, so you setup a fake mail destination, like Mailpit, and configure your app to send to this destination when testing. If you deploy, you only need to change to the real destination in 1 place, the config file