Spring Boot Resttemplate Guide With Example

Spring Boot Resttemplate Guide With Example

What is RestTemplet? RestTemplate is a HTTP Client library that provides basic APIs for executing different HTTP type requests. RestTemplate is one of the HTTP libraries available on the market. The Spring Boot team designed and maintains it. As previously said, it is a client library, which means it may be utilised in our application as a stand-alone dependency. To utilise it, you don’t require a complete Spring boot application....

April 22, 2022
How to Enable Sql Logs in Spring Boot Application

How to Enable Sql Logs in Spring Boot Application

Introduction This tutorial will demonstrate how to enable and disable SQL log statements in a Spring Boot application in order to debug SQL flow. Problem You will frequently need to debug the SQL statement while developing a Spring Boot application with a SQL database. SQL debug logs can assist you figure out what’s wrong with JPA statements and whether or not there’s a problem with database connectivity. Example If you’ve built custom Spring data JPA methods and need to know what SQL statement is being utilized behind them,...

April 8, 2022
Cucumber Setup Using Gradle

Cucumber Setup Using Gradle

Introduction This tutorial will help you configure Cucumber into a Java project using the Gradle build tool. Cucumber is a test automation tool that supports Behavior-Driven Development (BDD). It is written in plain English text called “Gherkin.” Cucumber enables you to write test cases that anyone can easily understand, regardless of their technical knowledge. Setup First, create a Gradle project using the gradle init command. gradle init Complete the Gradle wizard to create a project....

April 5, 2022
Getting Started With Micronaut Using Gradle

Getting Started With Micronaut Using Gradle

Introduction In this tutorial, we will create a Micronaut application using Gradle. What you will need Java installed on your machine Gradle installed on your machine Text Editor Steps First create your project folder, we will make a folder called “micronaut-project” for this tutorial. The second step is to add the build.gradle file inside the project folder. This will contain a script to build the Micronaut application. Now update the build....

March 15, 2022
Jax Rs Tutorilas Hello World Example

Jax Rs Tutorilas Hello World Example

Introduction Following is simple JAX-RS tutorial, which sends “Hello World” text as response string using JAX-RS API and Jersey implementation. Technologies and Tools used in this article: JDK Eclipse Tomcat Maven Jersey 1.8 Create Maven Web Project Create a Maven web project and name it “helloworld” . File -> New -> Other -> Maven Project -> Next Select maven-archetype-webapp Select Next Type Group Id, Artifact Id and Package name And select Finish Add Project Dependencies Add Jersey repository using Maven....

July 29, 2014
Jax Rs Tutorial Rest Api Using Java

Jax Rs Tutorial Rest Api Using Java

Introdcution JAX-RS is API specification for RESTful web services using Java. RESTful web services is implementation of REST (Representational State Transfer) which is architectural design for distributed system or in general we can say JAX-RS is a set of APIs to develop REST service. This is a brief introduction about REST and JAX-RS. You can find more information on REST on Wiki and JAX-RS Official Site. What is REST Representational state transfer is an abstraction of the architecture of the World Wide Web....

July 24, 2014
Mongodb Crud Operations Using Java

Mongodb Crud Operations Using Java

Introduction This article will show you how to use Java to perform CRUD operations on MongoDB records. If you’re new to MongoDB, we recommend starting with the Getting Started With MongoDB tutorial. To begin, we’ll establish a Person and Person Images table (a collection in MongoDB) to make CRUD operations in MongoDB easier. Define Data Structure The following is the data structure of the Person and Person Images table (collection in MongoDB)....

June 3, 2014