When documenting configuration properties in Spring Boot applications, follow these conventions for clarity and consistency: 1. Avoid starting descriptions with articles like "the" or "a"
When documenting configuration properties in Spring Boot applications, follow these conventions for clarity and consistency:
// INCORRECT:
/** The max time to wait for the container to start. */
// CORRECT:
/** Time to wait for the container to start. */
// INCORRECT:
/** This signals to Brave that the propagation type... */
// CORRECT:
/** Whether the propagation type and tracing backend support sharing the span ID... */
// INCORRECT:
/** Sub-protocol to use in websocket handshake signature. Null by default. */
// CORRECT:
/** Sub-protocol to use in websocket handshake signature. */
// INCORRECT:
private final Map<String, Duration> expiry = new LinkedHashMap<>();
// CORRECT:
/**
* Duration after which the value expires from the distribution.
*/
private final Map<String, Duration> expiry = new LinkedHashMap<>();
Following these conventions improves documentation readability and maintainability while providing a consistent experience for developers using your API.
Enter the URL of a public GitHub repository