Refactorings. Bean methods not public.

This commit is contained in:
BoykoAlex
2022-05-06 18:49:07 -04:00
parent 49873660e6
commit 8102c19f8a
23 changed files with 493 additions and 109 deletions

View File

@@ -21,6 +21,8 @@ import org.slf4j.LoggerFactory;
public class SpringProjectUtil {
public static final String SPRING_BOOT = "spring-boot";
private static final String VERION_PATTERN_STR = "(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?";
public static final Logger log = LoggerFactory.getLogger(SpringProjectUtil.class);
@@ -37,7 +39,7 @@ public class SpringProjectUtil {
}
public static boolean isBootProject(IJavaProject jp) {
return hasSpecificLibraryOnClasspath(jp, "spring-boot", true);
return hasSpecificLibraryOnClasspath(jp, SPRING_BOOT, true);
}
public static boolean hasBootActuators(IJavaProject jp) {