hhrzc
hhrzc

Reputation: 2050

Hide package or files in intellij idea

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

Answers (2)

kamentk
kamentk

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

Blagoj Atanasovski
Blagoj Atanasovski

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

Related Questions