idea导入设置 一、步骤: 路径:File | Settings | Editor | General | Auto Import勾选:√ √ Add unambiguous imports on the fly ? √ Optimize imports on the fly ? 二、作用: 不同名包:自动导入、无用包:自动去掉没用包同名包:需要手动 Alt + Enter 进行导入