CodePudding user response:
Open your idea Settings panel, select the Editor - & gt; General - & gt; Auto Import, on the right to check the Add unambiguous Import on the fly and Optimize imports on the fly (for the current project) these two options,CodePudding user response:
Click on the file - "Settings," Editor - "General -" AutoImportThen on the right side checked
The Add unambiguous import on the fly and Optimize imports on the fly (for the current project
Can go to the automatic import packages, if is the same name also need to import, press Alt + Entry can
CodePudding user response:
The first way: the top left corner File - & gt; Setting - & gt; Maven - & gt; ImportingThe second way: directly to your project sites the refresh button