IntelliJ IDEA中无法使用@Test测试单元从控制台中输入数据 解决方案 Step 1: step 2: 打开后在其中添加 -Deditable.java.test.console=true step 3: 重启Idea,即可。