@Test
public void test2() throws IOException {
Map<String, Object> map = new HashMap<>();
map.put("encoding", "gbk");
PropertySource propertySource1 = new MapPropertySource("map", map);
ResourcePropertySource propertySource2 = new ResourcePropertySource("resource", "classpath:resources.properties");
CompositePropertySource compositePropertySource = new CompositePropertySource("composite");
compositePropertySource.addPropertySource(propertySource1);