Strengthen package-like assertions
See gh-42682
This commit is contained in:
committed by
Phillip Webb
parent
98dd7b2758
commit
87cc2efb64
@@ -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.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user