Class YamlPropertySourceApp
java.lang.Object
info.ejava.examples.app.config.propertysource.annotation.YamlPropertySourceApp
@SpringBootApplication
@PropertySource(value="classpath:yaml_property_source.yml",
factory=YamlPropertySourceFactory.class)
public class YamlPropertySourceApp
extends Object
This class provides a YAML @PropertySource example. Independently it also
provides a few examples of how to create a component; class, annoynymous class,
and lambda.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.boot.CommandLineRunnerstatic void(package private) org.springframework.boot.CommandLineRunneryamlFromFactory(String text) (package private) org.springframework.boot.CommandLineRunner
-
Constructor Details
-
YamlPropertySourceApp
public YamlPropertySourceApp()
-
-
Method Details
-
main
-
importedYamlProperties
@Bean @Order(-2147483647) org.springframework.boot.CommandLineRunner importedYamlProperties() -
yamlFromFactory
@Bean @Order(-2147483646) org.springframework.boot.CommandLineRunner yamlFromFactory(@Value("${app.audience.multiline.collapsed}") String text) -
yamlFromFactoryPreserved
@Bean @Order(-2147483645) org.springframework.boot.CommandLineRunner yamlFromFactoryPreserved(@Value("${app.audience.multiline.preserved}") String text)
-