idea中@Test单元测试Scanner无法输入的解决方法

450 阅读1分钟

1.

image.png

2.加入一行:

-Deditable.java.test.console=true

image.png

3.重启idea