Class ServerProperties

java.lang.Object
com.bobocode.bring.web.server.properties.ServerProperties

public class ServerProperties extends Object
Configuration properties for the web server.

The values for these properties are typically defined in configuration files and injected using the @Value annotation.

Instances of this class are used to centralize configuration settings for the web server within the application.

Since:
1.0
Author:
Blyzhnytsia Team
See Also:
  • Value
  • Field Details

    • port

      private int port
      The port on which the web server will listen for incoming requests.
    • contextPath

      private String contextPath
      The context path for the web server. It represents the base path for all requests handled by the server.
    • withStackTrace

      private boolean withStackTrace
      Indicates whether stack traces should be included in error responses. true if stack traces should be included, false otherwise
    • withMessage

      private boolean withMessage
      Configuration property for controlling whether commit messages are included in GitInfo responses. It is used by the DefaultActuatorService to determine whether to fetch and display commit messages.

      The default value is false, meaning commit messages will not be included.

  • Constructor Details

    • ServerProperties

      public ServerProperties()