maven工程測試時找不到類

先去找File->project structure 打開之後找到Modules 在第2補選擇自己的項目(很有可能是父項目和子項目路徑相同) 在3部分選擇Paths, 修改第4部分爲 inherit project compile ouput path 使用 Use module compile output path 報錯 預防:在創建子項目的時候,一定要將子項目的打包方式設定爲jar
相關文章
相關標籤/搜索