mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Trigger configuration properties annotation processsor on @Endpoint
We generate metadata for `@Endpoint` annotated types so the annotation processor need to indicate that it supports the endpoint annotation. See gh-23580
This commit is contained in:
parent
b7d020d3c2
commit
c82581171d
@ -60,6 +60,7 @@ import org.springframework.boot.configurationprocessor.metadata.ItemMetadata;
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@SupportedAnnotationTypes({ ConfigurationMetadataAnnotationProcessor.CONFIGURATION_PROPERTIES_ANNOTATION,
|
||||
ConfigurationMetadataAnnotationProcessor.ENDPOINT_ANNOTATION,
|
||||
"org.springframework.context.annotation.Configuration" })
|
||||
public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor {
|
||||
|
||||
|
@ -72,7 +72,8 @@ class ConfigurationMetadataAnnotationProcessorTests extends AbstractMetadataGene
|
||||
void supportedAnnotations() {
|
||||
assertThat(new ConfigurationMetadataAnnotationProcessor().getSupportedAnnotationTypes())
|
||||
.containsExactlyInAnyOrder("org.springframework.boot.context.properties.ConfigurationProperties",
|
||||
"org.springframework.context.annotation.Configuration");
|
||||
"org.springframework.context.annotation.Configuration",
|
||||
"org.springframework.boot.actuate.endpoint.annotation.Endpoint");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user