enable配置关键字统一改为enabled

This commit is contained in:
smallchill 2020-04-17 21:09:31 +08:00
parent b560c9d097
commit c9f1774fc7
6 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ public class MybatisPlusConfiguration {
* @return SqlLogInterceptor
*/
@Bean
@ConditionalOnProperty(value = "blade.mybatis-plus.sql-log.enable", matchIfMissing = true)
@ConditionalOnProperty(value = "blade.mybatis-plus.sql-log", matchIfMissing = true)
public SqlLogInterceptor sqlLogInterceptor() {
return new SqlLogInterceptor();
}

View File

@ -31,7 +31,7 @@ public class OssProperties {
/**
* 是否启用
*/
private Boolean enable;
private Boolean enabled;
/**
* 对象存储名称

View File

@ -57,7 +57,7 @@ public class SecureConfiguration implements WebMvcConfigurer {
public void addInterceptors(InterceptorRegistry registry) {
clientProperties.getClient().forEach(cs -> registry.addInterceptor(new ClientInterceptor(cs.getClientId())).addPathPatterns(cs.getPathPatterns()));
if (secureRegistry.isEnable()) {
if (secureRegistry.isEnabled()) {
registry.addInterceptor(new SecureInterceptor())
.excludePathPatterns(secureRegistry.getExcludePatterns())
.excludePathPatterns(secureRegistry.getDefaultExcludePatterns())

View File

@ -29,7 +29,7 @@ import java.util.List;
@Data
public class SecureRegistry {
private boolean enable = false;
private boolean enabled = false;
private final List<String> defaultExcludePatterns = new ArrayList<>();

View File

@ -35,7 +35,7 @@ import javax.servlet.DispatcherType;
*/
@Configuration
@AllArgsConstructor
@ConditionalOnProperty(value = "blade.xss.enable", havingValue = "true")
@ConditionalOnProperty(value = "blade.xss.enabled", havingValue = "true")
@EnableConfigurationProperties({XssProperties.class, XssUrlProperties.class})
public class XssConfiguration {

View File

@ -33,7 +33,7 @@ public class XssProperties {
/**
* 开启xss
*/
private Boolean enable = true;
private Boolean enabled = true;
/**
* 放行url