当前位置: 首页>>代码示例>>Java>>正文


Java ConfigurationPropertiesBinding类代码示例

本文整理汇总了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);
            }
        }
    };
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:19,代码来源:CasCoreBootstrapStandaloneConfiguration.java

示例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;
		}
	};
}
 
开发者ID:Nephilim84,项目名称:contestparser,代码行数:14,代码来源:ConverterBindingTests.java

示例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();
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-deployer-mesos,代码行数:6,代码来源:MesosAutoConfiguration.java

示例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();
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-stream-app-starters,代码行数:6,代码来源:JdbcSinkConfiguration.java

示例9: signatureAlgorithmConverter

import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public SignatureAlgorithmConverter signatureAlgorithmConverter() {
    return new SignatureAlgorithmConverter();
}
 
开发者ID:unbroken-dome,项目名称:jsonwebtoken,代码行数:6,代码来源:JwtAutoConfiguration.java

示例10: spelConverter

import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
@IntegrationConverter
public Converter<String, Expression> spelConverter() {
	return new SpelConverter();
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-stream,代码行数:7,代码来源:SpelExpressionConverterConfiguration.java

示例11: stringToDurationConverter

import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public StringToDurationConverter stringToDurationConverter() {
	return new StringToDurationConverter();
}
 
开发者ID:Treydone,项目名称:mandrel,代码行数:6,代码来源:ThriftServerConfiguration.java

示例12: stringToHostAndPortConverter

import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public StringToHostAndPortConverter stringToHostAndPortConverter() {
	return new StringToHostAndPortConverter();
}
 
开发者ID:Treydone,项目名称:mandrel,代码行数:6,代码来源:UnitConversionConfiguration.java

示例13: stringToDurationConverter

import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; //导入依赖的package包/类
@Bean
@ConfigurationPropertiesBinding
public StringToTimeValueConverter stringToDurationConverter() {
	return new StringToTimeValueConverter();
}
 
开发者ID:Treydone,项目名称:mandrel,代码行数:6,代码来源:UnitConversionConfiguration.java


注:本文中的org.springframework.boot.context.properties.ConfigurationPropertiesBinding类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。