1.set customize code style

Window -> Preferences -> java -> code style -> Formatter -> import -> select your own rule xml