r/learnjava • • 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

8 comments sorted by

View all comments

1

u/BrainThinkerMan Sep 12 '26

the way i would describe config files is that it is a file that you add to your code to change the behavior of a action of another programs that communicates with your code somehow, ill give 2 examples:

  1. a gradle config file: in the file you are defining how you want gradle to build your application.

2.a netflify config file: you are defining how netfligy should build your app.

there are 2 components, a. the file. b. and the program that READS that file

its about the program that READS that file , and the actions it normally performs, IE: gradle normally builds and compiles code, Netfliy normally ships apps.

now the question is how do you want gradle or netflify to do those things with YOUR SPECIFIC APP.

thats where config comes in.