Class PropertyCheck

java.lang.Object
info.ejava.assignments.propertysource.rentals.PropertyCheck
All Implemented Interfaces:
org.springframework.boot.CommandLineRunner

@Component public class PropertyCheck extends Object implements org.springframework.boot.CommandLineRunner
  • Field Details

    • configName

      @Value("${spring.config.name:(default value)}") String configName
    • configLocations

      @Value("${spring.config.location:(default value)}") String configLocations
    • profilesActive

      @Value("${spring.profiles.active:(default value)}") String profilesActive
    • prioritySource

      @Value("${rentals.priority.source:not assigned}") String prioritySource
    • dbUrl

      @Value("${rentals.db.url:not assigned}") String dbUrl
  • Constructor Details

    • PropertyCheck

      public PropertyCheck()
  • Method Details

    • run

      public void run(String... args) throws Exception
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner
      Throws:
      Exception
    • getConfigName

      public String getConfigName()
    • getConfigLocations

      public String getConfigLocations()
    • getProfilesActive

      public String getProfilesActive()
    • getPrioritySource

      public String getPrioritySource()
    • getDbUrl

      public String getDbUrl()