set application property port programmatically code example Example: change port number in sts server.port=8081