對于idea使用junit進(jìn)行測試不能使用控制臺輸入的問題:
vm中加入-Deditable.java.test.console=true
-Deditable.java.test.console=true