[英]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?
如何隐藏/显示Spring项目的包或类?
您可以使用@EntityScan(basePackages = "com.example.one")
指定要扫描以找到您的实体的程序包,其中您的配置是
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
要排除软件包:
Right click on it -> Mark Directory as -> Excluded
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.