public static <T> T createPropertiesConfiguration(Class<T> clazz) {
        if (clazz == null) {
            throw new IllegalArgumentException("clazz should not be null");
        }
        if (!clazz.isAnnotationPresent(ConfigurationProperties.class)) {
            throw new IllegalArgumentException(clazz.getName() + " must annotation with @" + ConfigurationProperties.class.getName());
        }
        ConfigurationProperties annotation = clazz.getAnnotation(ConfigurationProperties.class);
        String[] locations = annotation.locations();
        return createPropertiesConfiguration(clazz, locations);
    }
@author Robert HG (254963746@qq.com) on 4/18/16.
lts-core/src/main/java/com/github/ltsopensource/autoconfigure/PropertiesConfigurationFactory.java