Merge branch '2.5.x'

Closes gh-28440
pull/28448/head
Andy Wilkinson 3 years ago
commit 3605388787

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -35,8 +35,8 @@ import org.springframework.web.bind.annotation.PostMapping;
/** /**
* Identifies a type as being an endpoint that is only exposed over Spring MVC or Spring * Identifies a type as being an endpoint that is only exposed over Spring MVC or Spring
* WebFlux. Mapped methods must be annotated with {@link GetMapping @GetMapping}, * WebFlux. Mapped methods must be annotated with {@link GetMapping @GetMapping},
* {@link PostMapping @PostMapping}, {@link DeleteMapping @DeleteMapping}, etc annotations * {@link PostMapping @PostMapping}, {@link DeleteMapping @DeleteMapping}, etc.
* rather than {@link ReadOperation @ReadOperation}, * annotations rather than {@link ReadOperation @ReadOperation},
* {@link WriteOperation @WriteOperation}, {@link DeleteOperation @DeleteOperation}. * {@link WriteOperation @WriteOperation}, {@link DeleteOperation @DeleteOperation}.
* <p> * <p>
* This annotation can be used when deeper Spring integration is required, but at the * This annotation can be used when deeper Spring integration is required, but at the

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -36,8 +36,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
/** /**
* Identifies a type as being a REST endpoint that is only exposed over Spring MVC or * Identifies a type as being a REST endpoint that is only exposed over Spring MVC or
* Spring WebFlux. Mapped methods must be annotated with {@link GetMapping @GetMapping}, * Spring WebFlux. Mapped methods must be annotated with {@link GetMapping @GetMapping},
* {@link PostMapping @PostMapping}, {@link DeleteMapping @DeleteMapping}, etc annotations * {@link PostMapping @PostMapping}, {@link DeleteMapping @DeleteMapping}, etc.
* rather than {@link ReadOperation @ReadOperation}, * annotations rather than {@link ReadOperation @ReadOperation},
* {@link WriteOperation @WriteOperation}, {@link DeleteOperation @DeleteOperation}. * {@link WriteOperation @WriteOperation}, {@link DeleteOperation @DeleteOperation}.
* <p> * <p>
* This annotation can be used when deeper Spring integration is required, but at the * This annotation can be used when deeper Spring integration is required, but at the

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -30,7 +30,7 @@ import java.util.Map;
public interface TraceableRequest { public interface TraceableRequest {
/** /**
* Returns the method (GET, POST, etc) of the request. * Returns the method (GET, POST, etc.) of the request.
* @return the method * @return the method
*/ */
String getMethod(); String getMethod();

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -67,7 +67,7 @@ class MetricsEndpointTests {
} }
@Test @Test
void listNamesRecursesOverCompositeRegistries() { void listNamesResponseOverCompositeRegistries() {
CompositeMeterRegistry composite = new CompositeMeterRegistry(); CompositeMeterRegistry composite = new CompositeMeterRegistry();
SimpleMeterRegistry reg1 = new SimpleMeterRegistry(); SimpleMeterRegistry reg1 = new SimpleMeterRegistry();
SimpleMeterRegistry reg2 = new SimpleMeterRegistry(); SimpleMeterRegistry reg2 = new SimpleMeterRegistry();

@ -106,7 +106,7 @@ class QuartzEndpointWebIntegrationTests {
@WebEndpointTest @WebEndpointTest
void quartzTriggersOrJobsAreAllowed(WebTestClient client) { void quartzTriggersOrJobsAreAllowed(WebTestClient client) {
client.get().uri("/actuator/quartz/something-elese").exchange().expectStatus().isBadRequest(); client.get().uri("/actuator/quartz/something-else").exchange().expectStatus().isBadRequest();
} }
@WebEndpointTest @WebEndpointTest

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -131,7 +131,7 @@ public @interface ConditionalOnProperty {
/** /**
* Specify if the condition should match if the property is not set. Defaults to * Specify if the condition should match if the property is not set. Defaults to
* {@code false}. * {@code false}.
* @return if should match if the property is missing * @return if the condition should match if the property is missing
*/ */
boolean matchIfMissing() default false; boolean matchIfMissing() default false;

@ -337,7 +337,7 @@ public class IntegrationProperties {
private Duration initialDelay; private Duration initialDelay;
/** /**
* Cron expression for polling. Mutually explusive with 'fixedDelay' and * Cron expression for polling. Mutually exclusive with 'fixedDelay' and
* 'fixedRate'. * 'fixedRate'.
*/ */
private String cron; private String cron;

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -48,7 +48,8 @@ public class ParentAwareNamingStrategy extends MetadataNamingStrategy implements
/** /**
* Set if unique runtime object names should be ensured. * Set if unique runtime object names should be ensured.
* @param ensureUniqueRuntimeObjectNames {@code true} if unique names should ensured. * @param ensureUniqueRuntimeObjectNames {@code true} if unique names should be
* ensured.
*/ */
public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames) { public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames) {
this.ensureUniqueRuntimeObjectNames = ensureUniqueRuntimeObjectNames; this.ensureUniqueRuntimeObjectNames = ensureUniqueRuntimeObjectNames;

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

@ -23,7 +23,7 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary; import org.springframework.context.annotation.Primary;
/** /**
* Configuration for multiple {@link DataSource} (one being {@code @Primary}. * Configuration for multiple {@link DataSource} (one being {@code @Primary}).
* *
* @author Phillip Webb * @author Phillip Webb
* @author Kazuki Shimizu * @author Kazuki Shimizu

Loading…
Cancel
Save