案发现场 单元测试时 Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java.cn.itplh.common.util Process finished with exit code 1 原因分析 解决方案 在测试类中包名不能以java开头 将包改为cn.itplh.common.util就好了。