Skip to content

Vyacheslav-Lapin/lombok-demo

Repository files navigation

Demo project of Lombok usage


Lombok features demo one-module project, created as practical part of Lombok training.

How to run

./mvnw

According to Maven pom build/defaultGoal section, this command is actually an alias for command:

./mvnw verify spring-boot:run 

How to delombok

Delombok is a way to view lombok application result as a code-gen.
Sources delombok action attached via Maven to process-sources life-cycle phase by ant-run plugin. So, for delombok source code, placed in src/main/java, you should tap this command in terminal:

./mvnw clean generate-sources

Then you can view delombok result in target/generated-sources/delomboked folder (if you use IntelliJ IDEA, you should unmark this directory if it automatically marked as "generated source root", to avoid class conflicts).

Test sources delombok action attached to process-test-sources phase. So, for delombok sources and tests, placed in src/main/java and src/test/java respectively, tap this command in terminal:

./mvnw clean generate-test-sources

Then you can view delombok results in target/generated-sources/delomboked and target/generated-test-sources/delomboked folders respectively (if you use IntelliJ IDEA, you should unmark this directories if it automatically marked as "generated source root", to avoid class conflicts).

How to enter

Then go to http://localhost:8080/swagger-ui.html for swagger-ui

Use user as a login and see logs for automatically-generated password (every start it'll be different).

Content

  • First example - package ru.vlapin.demo.lombokdemo.first.example.*
  • Stable features demo - package ru.vlapin.demo.lombokdemo.stable.*
  • Experimental features demo - package ru.vlapin.demo.lombokdemo.experimental.*
  • Example of realization of homework №6 of OTUS Java course: ru.vlapin.demo.lombokdemo.homeworks.O6.*
  • Example of AOP - @Loggable annotation aspect - ru.vlapin.demo.lombokdemo.common.Loggable
  • OpenFeign and OpenAPI-Generator example by using http://jsonplaceholder.typicode.com/ site API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages