Skip to content

Instantly share code, notes, and snippets.

@loomismilitia
Last active September 5, 2017 17:12
Show Gist options
  • Save loomismilitia/38c76292e527fbe22c52fbcc8a5c7954 to your computer and use it in GitHub Desktop.
Save loomismilitia/38c76292e527fbe22c52fbcc8a5c7954 to your computer and use it in GitHub Desktop.
Spring Boot common application.properties
# Common application properties
# https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
# Embedded Server Configuration
server.port = 9000
# Management HTTP Server
#
# Add the following maven dependency to access the Spring Boot Actuator: Production-ready features
# <dependency>
# <groupId>org.springframework.boot</groupId>
# <artifactId>spring-boot-starter-actuator</artifactId>
# </dependency>
management.port= # Management endpoint HTTP port. Uses the same port as the application by default. Configure a different port to use management-specific SSL.
management.context-path= # Management endpoint context-path. For instance `/actuator` or `/admin`
# Spring Boot command line arguments
# Overrides application properties
# Server HTTP port
java -Dserver.port=6666 -jar sample-1.0-SNAPSHOT.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment