https://blog.csdn.net/weixin_45103552/article/details/118198579你参考下,一般都是eclipse安装的有问题,或者ecilpse里jdk指定的有问题另外: 为啥不用idea呢???????