public class SpringBootUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getPropertiesFromApplicationYamlResource(String springActiveProfile,
URL ymlResource) |
static String |
getSpringBootActiveProfile(JavaProject project) |
static Properties |
getSpringBootApplicationProperties(String springActiveProfile,
URLClassLoader compileClassLoader)
Returns the spring boot configuration (supports `application.properties` and `application.yml`)
or an empty properties object if not found
|
static Properties |
getSpringBootApplicationProperties(URLClassLoader compileClassLoader)
Returns the spring boot configuration (supports `application.properties` and `application.yml`)
or an empty properties object if not found, it assumes first profile as default profile.
|
static Optional<String> |
getSpringBootDevToolsVersion(JavaProject mavenProject)
Determine the spring-boot devtools version for the current project
|
static Map<String,Object> |
getSpringBootPluginConfiguration(JavaProject javaProject) |
static Optional<String> |
getSpringBootVersion(JavaProject mavenProject)
Determine the spring-boot major version for the current project
|
public static Properties getSpringBootApplicationProperties(URLClassLoader compileClassLoader)
compileClassLoader - compile class loaderpublic static Properties getSpringBootApplicationProperties(String springActiveProfile, URLClassLoader compileClassLoader)
springActiveProfile - currently active spring-boot profilecompileClassLoader - compile class loaderpublic static Properties getPropertiesFromApplicationYamlResource(String springActiveProfile, URL ymlResource)
public static Optional<String> getSpringBootDevToolsVersion(JavaProject mavenProject)
mavenProject - Maven projectpublic static Optional<String> getSpringBootVersion(JavaProject mavenProject)
mavenProject - projectpublic static String getSpringBootActiveProfile(JavaProject project)
public static Map<String,Object> getSpringBootPluginConfiguration(JavaProject javaProject)
Copyright © 2022. All rights reserved.