Merge branch '2.4.x' into 2.5.x

Closes gh-28424
This commit is contained in:
Phillip Webb
2021-10-21 11:27:29 -07:00
24 changed files with 37 additions and 37 deletions

View File

@@ -881,12 +881,12 @@ public class RabbitProperties {
private Boolean mandatory;
/**
* Timeout for `receive()` operations.
* Timeout for {@code receive()} operations.
*/
private Duration receiveTimeout;
/**
* Timeout for `sendAndReceive()` operations.
* Timeout for {@code sendAndReceive()} operations.
*/
private Duration replyTimeout;

View File

@@ -98,7 +98,7 @@ public class BatchProperties {
/**
* Comma-separated list of job names to execute on startup (for instance,
* `job1,job2`). By default, all Jobs found in the context are executed.
* {@code "job1,job2"}). By default, all Jobs found in the context are executed.
*/
private String names = "";

View File

@@ -46,7 +46,7 @@ class RedisUrlSyntaxFailureAnalyzer extends AbstractFailureAnalyzer<RedisUrlSynt
}
if (!"redis".equals(uri.getScheme()) && !"rediss".equals(uri.getScheme())) {
return new FailureAnalysis(getUnsupportedSchemeDescription(cause.getUrl(), uri.getScheme()),
"Use the scheme 'redis://` for insecure or `rediss://` for secure Redis standalone configuration.",
"Use the scheme 'redis://' for insecure or 'rediss://' for secure Redis standalone configuration.",
cause);
}
}

View File

@@ -45,7 +45,7 @@ public class JacksonProperties {
/**
* Date format string or a fully-qualified date format class name. For instance,
* `yyyy-MM-dd HH:mm:ss`.
* {@code "yyyy-MM-dd HH:mm:ss"}.
*/
private String dateFormat;

View File

@@ -37,7 +37,7 @@ public class MailProperties {
private static final Charset DEFAULT_CHARSET = StandardCharsets.UTF_8;
/**
* SMTP server host. For instance, `smtp.example.com`.
* SMTP server host. For instance, {@code "smtp.example.com"}.
*/
private String host;

View File

@@ -37,7 +37,7 @@ class NonUniqueSessionRepositoryFailureAnalyzer extends AbstractFailureAnalyzer<
StringBuilder action = new StringBuilder();
action.append(String.format("Consider any of the following:%n"));
action.append(
String.format(" - Define the `spring.session.store-type` property to the store you want to use%n"));
String.format(" - Define the 'spring.session.store-type' property to the store you want to use%n"));
action.append(String.format(" - Review your classpath and remove the unwanted store implementation(s)%n"));
return new FailureAnalysis(message.toString(), action.toString(), cause);
}

View File

@@ -927,7 +927,7 @@ public class ServerProperties {
/**
* Name of the HTTP header from which the remote IP is extracted. For
* instance, `X-FORWARDED-FOR`.
* instance, {@code "X-FORWARDED-FOR"}.
*/
private String remoteIpHeader;

View File

@@ -82,17 +82,17 @@ public class WebFluxProperties {
public static class Format {
/**
* Date format to use, for example `dd/MM/yyyy`.
* Date format to use, for example {@code "dd/MM/yyyy"}.
*/
private String date;
/**
* Time format to use, for example `HH:mm:ss`.
* Time format to use, for example {@code "HH:mm:ss"}.
*/
private String time;
/**
* Date-time format to use, for example `yyyy-MM-dd HH:mm:ss`.
* Date-time format to use, for example {@code "yyyy-MM-dd HH:mm:ss"}.
*/
private String dateTime;

View File

@@ -42,7 +42,7 @@ import org.springframework.validation.DefaultMessageCodesResolver;
public class WebMvcProperties {
/**
* Formatting strategy for message codes. For instance, `PREFIX_ERROR_CODE`.
* Formatting strategy for message codes. For instance, {@code PREFIX_ERROR_CODE}.
*/
private DefaultMessageCodesResolver.Format messageCodesResolverFormat;
@@ -488,17 +488,17 @@ public class WebMvcProperties {
public static class Format {
/**
* Date format to use, for example `dd/MM/yyyy`.
* Date format to use, for example {@code "dd/MM/yyyy"}.
*/
private String date;
/**
* Time format to use, for example `HH:mm:ss`.
* Time format to use, for example {@code "HH:mm:ss"}.
*/
private String time;
/**
* Date-time format to use, for example `yyyy-MM-dd HH:mm:ss`.
* Date-time format to use, for example {@code "yyyy-MM-dd HH:mm:ss"}.
*/
private String dateTime;

View File

@@ -43,7 +43,7 @@ class RedisUrlSyntaxFailureAnalyzerTests {
FailureAnalysis analysis = new RedisUrlSyntaxFailureAnalyzer().analyze(exception);
assertThat(analysis.getDescription()).contains("The URL 'http://127.0.0.1:26379/mymaster' is not valid")
.contains("The scheme 'http' is not supported");
assertThat(analysis.getAction()).contains("Use the scheme 'redis://` for insecure or `rediss://` for secure");
assertThat(analysis.getAction()).contains("Use the scheme 'redis://' for insecure or 'rediss://' for secure");
}
@Test