點擊File→Setting,Setting→Editor→General→Auto Import,勾選Add unambiguous imports on the fly即可自動導包,點擊apply→OK