Reputation: 2050
I need to test different implementations of the same classes in the spring project. I mean "entities" packages - I've created two implementations and want to run a project using different variants. How can I hide / show a package or classes for a spring project?
Upvotes: 0
Views: 1281
Reputation: 547
Try to mark one of the packages as excluded. It used to work for me.
To exclude package: Right click on it -> Mark Directory as -> Excluded
Upvotes: 0
Reputation: 863
You can specify the package that is scanned to find your entities with @EntityScan(basePackages = "com.example.one")
where your configuration is
Upvotes: 1