MAC:
1、打开IntelliJ IDEA,Preferences > code style > java > imports
2、set "class count to use import with '*'" to 500
3、set this ordering (like eclipse defaults):
static all other,
blank,
java.*,
blank,
javax.*,
blank,
org.*,
blank,
com.*,
blank,
all other imports
原解决问题的链接: