IntelliJ设置自动删除无用import包
File --> Settings... --> Editor --> General --> Auto Import --> 勾选"Optimize imports on the fly(for current project)"


File --> Settings... --> Editor --> General --> Auto Import --> 勾选"Optimize imports on the fly(for current project)"

