public class SpringBootUtil extends Object
Constructor and Description |
---|
SpringBootUtil() |
Modifier and Type | Method and Description |
---|---|
static Properties |
getPropertiesFile(org.apache.maven.project.MavenProject project,
String propertiesFileName)
Returns the given properties file on the project classpath if found or an empty properties object if not
|
static Properties |
getPropertiesFromYamlFile(org.apache.maven.project.MavenProject project,
String yamlFileName)
Returns a
Properties representation of the given Yaml file on the project classpath if found or an empty properties object if not |
protected static Properties |
getPropertiesFromYamlResource(URL resource)
Returns a
Properties representation of the given Yaml resource or an empty properties object if the resource is null |
protected static Properties |
getPropertiesResource(URL resource)
Returns the given properties resource on the project classpath if found or an empty properties object if not
|
static Properties |
getSpringBootApplicationProperties(org.apache.maven.project.MavenProject project)
Returns the spring boot configuration (supports `application.properties` and `application.yml`)
or an empty properties object if not found
|
public static Properties getSpringBootApplicationProperties(org.apache.maven.project.MavenProject project)
public static Properties getPropertiesFile(org.apache.maven.project.MavenProject project, String propertiesFileName)
protected static Properties getPropertiesResource(URL resource)
public static Properties getPropertiesFromYamlFile(org.apache.maven.project.MavenProject project, String yamlFileName)
Properties
representation of the given Yaml file on the project classpath if found or an empty properties object if notprotected static Properties getPropertiesFromYamlResource(URL resource)
Properties
representation of the given Yaml resource or an empty properties object if the resource is nullCopyright © 2019. All rights reserved.