**Help -》 Edit custom VM options 在最后一行添加:-Deditable.java.test.console=true,然后重启idea生效。 注意不要动其他参数,否则打不开idea只能重装。