I'm trying to set a property in a Spring application (server.port
). To do this, the docs says that I need a application.properties
file. It says this as it is a default thing for all Java applications. So, how/where should I create this file?
I've followed this answer, but I had no success creating the file under /src/main/resources/
. Is it missing a reference?
EDIT: I had no success because the application still loads using port 8080 instead of the port that I've defined in the configuration file.