Idea自动清除无效的import导入包 CTRL + ALT + O 或者设置 IDEA自动清理 https://blog.csdn.net/stack_xman/article/details/123129719
settings -> editing -> general -> auto import -> java项中勾选optimize imports on the fly