Skip to content

VineethRamakrishnan/customer-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot application to include various features

  • Spring Boot : @ConfigurationProperties
  • Spring Boot : Json to Object (Jackson mapping)
  • JPA : 1-1 and 1-Many
  • JPA : Stored Procedure and CustomQuery
  • Mongo DB : MongoRepository and MongoClient
  • Kafka : Messaging based on the Partition in the request parameter

Jackson

This java based library is mainly used for serialization(Java Object to JSON) and deserialization(JSON to Java Object) purposes.

HttpMessageConverters

Bean used to manage the HttpMessageConverters used in a Spring Boot application. Provides a convenient way to add and merge additional HttpMessageConverters to a web application.

1.Based on the Content-Type header it will call the corresponding MessageConvertor (For @RequestBody)

2.Based on the Accept header it will call the the corresponding MessageConveror (For @ResponseBody)

CustomQuery

It supports various custom SQL/JPQL queries to accomplish specialized application tasks. There are three ways of implementing the custom queries.

Stored Procedures

Stored Procedures allow to reuse the queries over multiple times just by passing the required parameters. spring-data-JPA provides flexible way to access the stored procedures by just annotating the entity class with @NamedStoredProcedureQuery.

Mongo DB

Mongo DB is one type of the database technology which works based on the documents. Some of the basic terminologies in Mongo DB which has similar context in MySQL

Mongo DB MySQL
Database Database
Collection Table
Document Row
Field Column
Primary Key Primary Key
Joining Linking & Embedding

Kafka

One of the distributed messaging platform to send/receive messages through topics.

Get familiar with kafka jargon using this video. Basic documentation for starting zookeeper server, kafka server and creating topic see kafka docs. UI for kafka components kafdrop.

In this example kafka with multiple partitions is implemented. User have to specify the particular partition as part of the request parameter to send/receive messages.

About

Spring boot project to implement various features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages