Skip to content

r0n1am/SpringBoot-Lombok-Mapstruct-HibernateMetaGeneration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBoot-Lombok-Mapstruct-HibernateMetaGeneration

Spring Boot 2.0 with Lombok, Mapstruct, and Hibernate Meta-model Generation integration

Prerequisite

  1. JDK 9 (Tested with JDK 9.0.4)

  2. IDE (Tested with Eclipse Oxygen and Intellij 2017.3.4 Ultimate Edition)

  3. Source code

  4. For Eclipse user, Lombok Plugin need to download seperately.

Eclipse setup

Buildship in stock Eclipse Oxygen contains bugs that makes importing Gradle Project impossible with JDK 9.
  1. Install Lombok plugin

  2. Update Buildship plugin

    1. Help > Eclipse Marketplace…​

    2. Search for "Buildship"

    3. Click "Installed" button

    4. Click "Update"

  3. Import downloaded source as "Existing Gradle Project"

    • Source should show error for now, will be fixed after step "Refresh Gradle Project"

  4. In "Gradle Tasks" view or make a new Run Configuration, run test task

  5. If everything works, the tests should be all passed

  6. Right click project in "Project Explorer" and then Gradle > Refresh Gradle Project

Intellij setup

  1. Import project in Intellij from downloaded soure path

  2. In Import Model prompt, select "Import Project as external module".

  3. In next screen, select "Use auto-import" and finish.

  4. Install Lombok plugin inside Intellij, then restart Intellij.

  5. After some loading, project should be setup automatically.

  6. Run test task in Gradle view to ensure everything works.

Contribution

About

Spring Boot 2.0 with Lombok, Mapstruct, and Hibernate Meta-model Generation integration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages