parent
98dd7b2758
commit
87cc2efb64
|
@ -138,7 +138,7 @@ class EnvironmentEndpointDocumentationTests extends MockMvcEndpointDocumentation
|
|||
}
|
||||
|
||||
private boolean retainKey(String key) {
|
||||
return key.startsWith("java.") || key.equals("JAVA_HOME") || key.startsWith("com.example");
|
||||
return key.startsWith("java.") || key.equals("JAVA_HOME") || key.startsWith("com.example.");
|
||||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
|
|
|
@ -25,7 +25,7 @@ public class MyEntityScanConfiguration {
|
|||
|
||||
@Bean
|
||||
public ManagedClassNameFilter entityScanFilter() {
|
||||
return (className) -> className.startsWith("com.example.app.customer");
|
||||
return (className) -> className.startsWith("com.example.app.customer.");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ class MyEntityScanConfiguration {
|
|||
@Bean
|
||||
fun entityScanFilter() : ManagedClassNameFilter {
|
||||
return ManagedClassNameFilter { className ->
|
||||
className.startsWith("com.example.app.customer")
|
||||
className.startsWith("com.example.app.customer.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -280,7 +280,7 @@ public class AutoConfigureAnnotationProcessor extends AbstractProcessor {
|
|||
}
|
||||
|
||||
private boolean isSpringClass(String type) {
|
||||
return type.startsWith("org.springframework");
|
||||
return type.startsWith("org.springframework.");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -150,7 +150,7 @@ public class Handler extends URLStreamHandler {
|
|||
if (file.startsWith(TOMCAT_WARFILE_PROTOCOL) || !file.contains("*/")) {
|
||||
try {
|
||||
URLConnection connection = new URL(file).openConnection();
|
||||
if (connection.getClass().getName().startsWith("org.apache.catalina")) {
|
||||
if (connection.getClass().getName().startsWith("org.apache.catalina.")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -88,8 +88,8 @@ final class ModifiedClassPathClassLoader extends URLClassLoader {
|
|||
|
||||
@Override
|
||||
public Class<?> loadClass(String name) throws ClassNotFoundException {
|
||||
if (name.startsWith("org.junit") || name.startsWith("org.hamcrest")
|
||||
|| name.startsWith("io.netty.internal.tcnative")) {
|
||||
if (name.startsWith("org.junit.") || name.startsWith("org.hamcrest.")
|
||||
|| name.startsWith("io.netty.internal.tcnative.")) {
|
||||
return Class.forName(name, false, this.junitLoader);
|
||||
}
|
||||
String packageName = ClassUtils.getPackageName(name);
|
||||
|
|
Loading…
Reference in New Issue