Setup Eclipse for proper formatting

  1.  Open Eclipse
  2. Follow Window -> Preferences -> Java -> Editor -> Save Actions
  3. Select 'Format all lines' radio button item
  4. Check 'Organize imports' check box
  5. Click on 'Formatter' link
  6. Click import -> select "spring-eclipse-code-conventions.xml"

相关推荐