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

相关文章:

  • 2021-12-31
  • 2021-06-05
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
  • 2021-04-05
  • 2021-12-05
  • 2021-07-02
猜你喜欢
  • 2021-12-12
  • 2022-12-23
  • 2021-11-25
  • 2021-09-06
  • 2021-07-15
  • 2022-12-23
  • 2021-06-30
相关资源
相似解决方案