本文整理汇总了Java中org.springframework.boot.context.properties.ConfigurationPropertiesBinding类的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationPropertiesBinding类的具体用法?Java ConfigurationPropertiesBinding怎么用?Java ConfigurationPropertiesBinding使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConfigurationPropertiesBinding类属于org.springframework.boot.context.properties包,在下文中一共展示了ConfigurationPropertiesBinding类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: convert
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@ConfigurationPropertiesBinding
@Bean
public Converter<String, List<Class<? extends Throwable>>> commaSeparatedStringToThrowablesCollection() {
return new Converter<String, List<Class<? extends Throwable>>>() {
@Override
public List<Class<? extends Throwable>> convert(final String source) {
try {
final List<Class<? extends Throwable>> classes = new ArrayList<>();
for (final String className : StringUtils.commaDelimitedListToStringArray(source)) {
classes.add((Class<? extends Throwable>) ClassUtils.forName(className.trim(), getClass().getClassLoader()));
}
return classes;
} catch (final Exception e) {
throw new IllegalStateException(e);
}
}
};
}
示例2: convert
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public Converter<String, Foo> converter() {
return new Converter<String, ConverterBindingTests.Foo>() {
@Override
public Foo convert(String source) {
return new Foo(source);
}
};
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:12,代码来源:ConverterBindingTests.java
示例3: convert
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public Converter<String, Foo> converter() {
return new Converter<String, ConverterBindingTests.Foo>() {
@Override
public Foo convert(String source) {
Foo foo = new Foo();
foo.setName(source);
return foo;
}
};
}
示例4: stringOrNumberMigrationVersionConverter
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public StringOrNumberToMigrationVersionConverter stringOrNumberMigrationVersionConverter() {
return new StringOrNumberToMigrationVersionConverter();
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:6,代码来源:FlywayAutoConfiguration.java
示例5: constraintConverter
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public ConstraintConverter constraintConverter() {
return new ConstraintConverter();
}
示例6: inetSocketAddressConverter
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public Converter<String, InetSocketAddress> inetSocketAddressConverter() {
return new InetSocketAddressConverter();
}
开发者ID:spring-cloud-stream-app-starters,项目名称:gemfire,代码行数:6,代码来源:InetSocketAddressConverterConfiguration.java
示例7: durationConverter
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public DurationConverter durationConverter() {
return new DurationConverter();
}
开发者ID:spring-cloud,项目名称:spring-cloud-deployer-cloudfoundry,代码行数:6,代码来源:CloudFoundryDeployerAutoConfiguration.java
示例8: shorthandMapConverter
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public ShorthandMapConverter shorthandMapConverter() {
return new ShorthandMapConverter();
}
示例9: signatureAlgorithmConverter
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public SignatureAlgorithmConverter signatureAlgorithmConverter() {
return new SignatureAlgorithmConverter();
}
示例10: spelConverter
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
@IntegrationConverter
public Converter<String, Expression> spelConverter() {
return new SpelConverter();
}
示例11: stringToDurationConverter
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public StringToDurationConverter stringToDurationConverter() {
return new StringToDurationConverter();
}
示例12: stringToHostAndPortConverter
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public StringToHostAndPortConverter stringToHostAndPortConverter() {
return new StringToHostAndPortConverter();
}
示例13: stringToDurationConverter
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public StringToTimeValueConverter stringToDurationConverter() {
return new StringToTimeValueConverter();
}