Class ServerProperties
java.lang.Object
com.bobocode.bring.web.server.properties.ServerProperties
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The context path for the web server.private int
The port on which the web server will listen for incoming requests.private boolean
Configuration property for controlling whether commit messages are included in GitInfo responses.private boolean
Indicates whether stack traces should be included in error responses. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
port
private int portThe port on which the web server will listen for incoming requests. -
contextPath
The context path for the web server. It represents the base path for all requests handled by the server. -
withStackTrace
private boolean withStackTraceIndicates whether stack traces should be included in error responses.true
if stack traces should be included,false
otherwise -
withMessage
private boolean withMessageConfiguration 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()
-