My Two Cents

  • Home

Learn Live Laugh...

BDD

Karate in Action – Rest API testing

Overview In this post we will see What is Karate and How to test Rest API with Karate Framework(BDD). Karate Karate is a complete DSL and sits on top of Cucumber-JVM. Unlike other automated API testing tools which require a Read more…

By Ashish, 2 years2 years ago
Spring

Overview of @Component, @Controller, @Repository, @Service

Overview In this post, we will go through @Component, @Controller, @Repository, @Service annotations in Spring Framework. Stereotype Annotations Spring scans and registers Beans in the ApplicationContext. We can use @Component, @Controller, @Repository, @Service depending on the use case. Let’s see them Read more…

By Ashish, 2 years2 years ago
jQuery

Server Side Pagination using jQuery Datatable

Overview In this blog, we will see how to configure Server-Side Pagination in jQuery Datatable. To activate Server-Side pagination you need to pass “serverSide”: true in DataTable configuration Datatable appends a few parameters in request call whether it’s POST/GET Few of these Read more…

By Ashish, 2 years2 years ago
Spring

Spring Retry in Action

Overview In this blog, we will configure and use Spring Retry logic using Spring Application. For the use case where you need to re-invoke a failed operation or call a method again on failure. Spring Retry provides declarative retry support Read more…

By Ashish, 2 years2 years ago
JAVA

RestTemplate in Spring

Overview RestTemplate reduces boilerplate code and enforces RESTful principles. In this post, we will discuss different ways in which we can use RestTemplate HTTP GET call HTTP POST call HTTP Exchange call HTTP DELETE call GET call Get entry point Read more…

By Ashish, 3 years2 years ago
JAVA

Jackson JSON infinite recursion problem

Overview In this blog, we will cover a very common issue that causes the Infinity loop aka (Jackson JSON infinite recursion) when using @ManyToOne and @OneToMany relation between entities and how we can resolve them. Sample Code being used Error Read more…

By Ashish, 3 years2 years ago
MAVEN

Use maven without Admin access on Windows OS

Overview In this blog, we will cover how to use maven without Admin access through cmd on Windows OS 10 & older versions. Prerequisites JAVA is installed (check C:\Program Files\Java\) Apache Maven zip Download Apache Maven directly from here or Read more…

By Ashish, 3 years2 years ago
Apache Tomcat

Session Replication in Tomcat

Overview In this blog, we will cover What is Session Replication? How to configure Session replication into multiple Server running in a Cluster. Session Replication When it comes to the high availability of Application, we generally run our server as a Read more…

By Ashish, 4 years3 years ago
Nginx

Configure Load Balancing with Nginx

Overview In this post, we will cover the following points What is Nginx? Install Nginx Configuring Nginx as a load balancer What is Nginx? NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. Read more…

By Ashish, 4 years3 years ago
JAVA

Read Dynamic Object from JSON using Gson

Overview We have seen in prev post  how to use GSON to convert a JSON to Java Object and other way around In this post, we will see how to convert JSON which has Dynamic Keys. Sample JSON If you notice in Read more…

By Ashish, 4 years3 years ago

Posts navigation

1 2 … 6 Next
Subscribe
Loading
Categories
Apache Tomcat (1) BDD (1) Collections (3) Git (2) JAVA (43) Javascript (1) JAX-RS (1) jQuery (1) JSON (2) MAVEN (2) Nginx (1) Spring (9) SSL Certification (1)
Recent Posts
  • Karate in Action – Rest API testing
  • Overview of @Component, @Controller, @Repository, @Service
  • Server Side Pagination using jQuery Datatable
  • Spring Retry in Action
  • RestTemplate in Spring

  • Home