change server port in spring boot without using properties file code example Example: change port number in sts server.port=8081