maven工程测试时找不到类
先去找File->project structure
打开之后找到Modules
在第2补选择自己的项目(很有可能是父项目和子项目路径相同)
在3部分选择Paths,
修改第4部分为 inherit project compile ouput path
使用 Use module compile output path 报错
预防:在创建子项目的时候,一定要将子项目的打包方式设定为jar
先去找File->project structure
打开之后找到Modules
在第2补选择自己的项目(很有可能是父项目和子项目路径相同)
在3部分选择Paths,
修改第4部分为 inherit project compile ouput path
使用 Use module compile output path 报错
预防:在创建子项目的时候,一定要将子项目的打包方式设定为jar