Class SpringApplicationUtils


  • public abstract class SpringApplicationUtils
    extends java.lang.Object
    SpringApplication Utilities class
    Since:
    1.0.0
    Author:
    Mercy
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addDefaultPropertiesResource​(java.lang.String resourceLocation)
      Add "defaultProperties" resource path
      static void addDefaultPropertiesResources​(java.lang.String... resourceLocations)
      Add one or more "defaultProperties" resource paths
      static java.util.Set<java.lang.String> getDefaultPropertiesResources()  
      static org.springframework.core.io.ResourceLoader getResourceLoader​(org.springframework.boot.SpringApplication springApplication)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addDefaultPropertiesResource

        public static void addDefaultPropertiesResource​(java.lang.String resourceLocation)
        Add "defaultProperties" resource path
        Parameters:
        resourceLocation - "defaultProperties" resource path
      • addDefaultPropertiesResources

        public static void addDefaultPropertiesResources​(java.lang.String... resourceLocations)
        Add one or more "defaultProperties" resource paths
        Parameters:
        resourceLocations - one or more "defaultProperties" resource paths
      • getDefaultPropertiesResources

        public static java.util.Set<java.lang.String> getDefaultPropertiesResources()
        Returns:
        read-only defaultPropertiesResources
      • getResourceLoader

        public static org.springframework.core.io.ResourceLoader getResourceLoader​(org.springframework.boot.SpringApplication springApplication)