解决Junit单元测试 找不到类

    xiaoxiao2022-07-15  146

    做junit  单元测试时,发现怎么执行都是以前编译过得代码。   最后找到原因了, src/test/java 编译完的.class路径是 Default output folder   Default output folder:  zphVip/src/main/webapp/WEB-INF/classes   解决   1 勾选 Allow output floders for source folders  ------允许源文件夹编译过后的.class输入文件夹自己指定   2 Edit 指定 output floder为 target/classes-----不适用默认,自己指定output floder 最新内容请见作者的GitHub页:http://qaseven.github.io/
    最新回复(0)