idea中导包出现import org.apach.*,提交代码老出现冲突,不想使用.*的设置

打开设置>Editor>Code Style>Java>Scheme Default>Imports

  • ① 将Class count to use import with "*"改为99(导入同一个包的类超过这个数值自动变为 * )
  • ② 将Names count to use static import with "*"改为99(同上,但这是静态导入的)
  • ③ 将Package to Use import with "*"删掉默认的这两个包(不管使用多少个类,只要在这个列表里都会变为 * )

  比较详细的图解:

原文地址:https://www.cnblogs.com/zhang-yawei/p/11497317.html