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.
  • Constructor Details

    • YamlPropertySourceApp

      public YamlPropertySourceApp()
  • Method Details

    • main

      public static void main(String... args)
    • 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)