Using Eclipse

If you are an Eclipse user, then we recommend you download the "Spring Tools Suite" bundle.

Prerequisites

Install Project Lombok

The SimpleApp starter app uses Project Lombok annotations (@Getter and @Setter and so on) to reduce the boilerplate. For Eclipse IDE this requires an installation step.

1

Importing the Project

Use File > Import, then Maven > Existing Maven Projects.

2
3
4
7

Importing:

8

Running the App

Create a launch configuration that runs the main class annotated with @SpringBootApplication.

  • create a Spring Boot configuration:

    9
  • specify the module and main class

    A

If your application uses the JPA/Eclipselink object store, then you should enable weaving:

  • change eclipselink.weaving property to true in application.yml file:

    B
  • in the run configuration, specify the javaagent: JVM argument:

    C

You should then be able to run the app:

  • console:

    D
  • boot dashboard:

    E

The app should be accessible at http://localhost:8080