Package io.microsphere.spring.boot.util
Class SpringApplicationUtils
java.lang.Object
io.microsphere.spring.boot.util.SpringApplicationUtils
SpringApplication
Utilities class- Since:
- 1.0.0
- Author:
- Mercy
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDefaultPropertiesResource
(String resourceLocation) Add "defaultProperties" resource pathstatic void
addDefaultPropertiesResources
(String... resourceLocations) Add one or more "defaultProperties" resource pathsstatic org.springframework.core.io.ResourceLoader
getResourceLoader
(org.springframework.boot.SpringApplication springApplication)
-
Method Details
-
addDefaultPropertiesResource
Add "defaultProperties" resource path- Parameters:
resourceLocation
- "defaultProperties" resource path
-
addDefaultPropertiesResources
Add one or more "defaultProperties" resource paths- Parameters:
resourceLocations
- one or more "defaultProperties" resource paths
-
getDefaultPropertiesResources
- Returns:
- read-only
defaultPropertiesResources
-
getResourceLoader
public static org.springframework.core.io.ResourceLoader getResourceLoader(org.springframework.boot.SpringApplication springApplication)
-