Customizing the embedded server configuration

An embedded server is one of the most important features of Spring Boot. Some of the embedded server features that can be configured through application properties include the following:

  • Server ports
  • SSL support and configuration
  • Access log configuration

The following snippet shows some of the embedded server features that can be configured through application properties:

# Path of the error controller.
server.error.path=/error
# Server HTTP port.
server.port=8080
# Enable SSL support.
server.ssl.enabled=
# Path to key store with SSL certificate
server.ssl.key-store=
# Key Store Password
server.ssl.key-store-password=
# Key Store Provider
server.ssl.key-store-provider=
# Key Store Type
server.ssl.key-store-type=
# Should we enable access log of Tomcat?
server.tomcat.accesslog.enabled=false
# Maximum number of connections that server can accept
server.tomcat.max-connections=
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset