BAEL-3704: Add missing code samples (#10226)
This commit is contained in:
parent
8c26df1709
commit
a0828bf3d1
|
@ -0,0 +1,14 @@
|
|||
package com.baeldung.configurationproperties;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
|
||||
|
||||
@SpringBootApplication
|
||||
@ConfigurationPropertiesScan("com.baeldung.configurationproperties")
|
||||
public class ConfigurationScanDemoApplication{
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ConfigurationScanDemoApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.baeldung.configurationproperties;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableConfigurationProperties(ConfigProperties.class)
|
||||
public class EnableConfigurationDemoApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(EnableConfigurationDemoApplication.class, args);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue