Skip to content
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BusinessEntityManagementSystem
BusinessStatisticsUnitFiles
Common
.gitignore
README.md
businessStatisticsUnitFilesApplication.db.mv.db
pom.xml
spring-boot-api-communication-through-kafka.iml

README.md

Key Java @Annotations to build full Spring Boot Rest API

Source code for my blog (www.jeevora.com) post about Key Java @Annotations to build full Spring Boot Rest API (https://www.jeevora.com/2019/09/16/key-java-annotations-to-build-spring-boot-rest-api/ and https://dzone.com/articles/key-java-annotations-to-build-full-spring-boot-res) https://www.jeevora.com/

This post aims to demonstrate important Java @annotations used to build a functional Spring Boot REST API. The use of Java annotation gives developers the capability to reduce the code verbosity by a simple annotation.

As an example, we can refer to a transaction. By the standard pro-grammatically process with a transaction template, this requires a more complex config and boilerplate code to write, while this can be achieved with a simple@Transactional declarative annotation.

The API is a simple module to implement a CRUD operation of Business Entity from a more complex system with the intention to coordinate and harmonize economic information relating to enterprises, establishments, and groups of entities. For the sake of simplicity, the API uses the H2 in-memory database.

The project structure is constituted by three modules, but this post will focus on the module to manage entities. That module has a dependency from the Common module, where it shares things like the error handling and essential useful classes with the remaining part of the whole system.

You can’t perform that action at this time.