Skip to content

Commit 7072465

Browse files
authored
Update AuthorizationApplication.java
1 parent 8ec65be commit 7072465

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

forsrc-springboot-gwt-authorization/src/main/java/com/forsrc/boot/authorization/AuthorizationApplication.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
@EnableConfigurationProperties({ AuthorizationServerProperties.class })
1515
public class AuthorizationApplication {
1616

17+
/*
18+
@Bean
19+
public PropertySourcesPlaceholderConfigurer properties() {
20+
21+
PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer();
22+
YamlPropertiesFactoryBean yaml = new YamlPropertiesFactoryBean();
23+
yaml.setResources(new ClassPathResource[] { new ClassPathResource("*.yml")});
24+
propertySourcesPlaceholderConfigurer.setProperties(yaml.getObject());
25+
return propertySourcesPlaceholderConfigurer;
26+
}
27+
*/
28+
1729
public static void main(String[] args) {
1830
SpringApplication.run(AuthorizationApplication.class, args);
1931
}

0 commit comments

Comments
 (0)