Polish usage of @ConfigurationProperties

See gh-44725

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
Yanming Zhou
2025-03-17 10:55:36 +08:00
committed by Stéphane Nicoll
parent 135fb1a254
commit fa9c1f0c41
3 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ import org.springframework.util.StringUtils;
* @since 2.0.0
* @see ServerProperties
*/
@ConfigurationProperties(prefix = "management.server", ignoreUnknownFields = true)
@ConfigurationProperties("management.server")
public class ManagementServerProperties {
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* @author Marten Deinum
* @since 1.1.0
*/
@ConfigurationProperties(prefix = "spring.groovy.template", ignoreUnknownFields = true)
@ConfigurationProperties("spring.groovy.template")
public class GroovyTemplateProperties extends AbstractTemplateViewResolverProperties {
public static final String DEFAULT_RESOURCE_LOADER_PATH = "classpath:/templates/";

View File

@@ -75,7 +75,7 @@ import org.springframework.util.unit.DataSize;
* @author Lasse Wulff
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "server", ignoreUnknownFields = true)
@ConfigurationProperties("server")
public class ServerProperties {
/**