idea自动导包错误

最近在使用idea时由于错误操作,导致我在new List子类时报错,查看导入后发现是如下错误

import com.sun.xml.internal.bind.v2.schemagen.xmlschema.List;

解决方式如下:

点击 idea菜单栏的 file -> settings -> General -> Auto Import -> 在Exclude from auto-import and completion 删除 List

 

这样就解决了 

猜你喜欢

转载自blog.csdn.net/weixin_56058578/article/details/129469309