public class SpringBootUtil extends Object
Constructor and Description |
---|
SpringBootUtil() |
Modifier and Type | Method and Description |
---|---|
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(URLClassLoader compileClassLoader)
Returns the spring boot configuration (supports `application.properties` and `application.yml`)
or an empty properties object if not found
|
static Optional<String> |
getSpringBootDevToolsVersion(org.apache.maven.project.MavenProject mavenProject)
Determine the spring-boot devtools version for the current project
|
static Optional<String> |
getSpringBootVersion(org.apache.maven.project.MavenProject mavenProject)
Determine the spring-boot major version for the current project
|
public static Properties getSpringBootApplicationProperties(URLClassLoader compileClassLoader)
protected static Properties getPropertiesResource(URL resource)
public static Optional<String> getSpringBootDevToolsVersion(org.apache.maven.project.MavenProject mavenProject)
Copyright © 2021. All rights reserved.