Package io.microsphere.spring.boot.util
Class SpringApplicationUtils
- java.lang.Object
-
- io.microsphere.spring.boot.util.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 pathstatic void
addDefaultPropertiesResources(java.lang.String... resourceLocations)
Add one or more "defaultProperties" resource pathsstatic java.util.Set<java.lang.String>
getDefaultPropertiesResources()
static org.springframework.core.io.ResourceLoader
getResourceLoader(org.springframework.boot.SpringApplication springApplication)
-
-
-
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)
-
-