Here in this post we will discuss about spring-boot integration with NoSQL database like apache Cassandra. We will create a simple spring-boot RESTful application which can search for records and create records in Cassandra. Here we are going to use Achilles for Cassandra integration. Achilles is an open source advanced object mapper for Apache Cas...

Read More

In this post we will discuss about spring boot HandlerInterceptor integration example with WebMvcConfigurerAdapter .Handler interceptors are used when you want to apply specific functionality to certain or all requests. Handler Interceptors should implement the interface HandlerInterceptor. HandlerInterceptor can be used to avoid repetitive handler...

Read More

In this post we’ll see how to integrate spring-boot with Jersey. Jersey is an reference implementation of JAX-RS. JAX-RS is a Java API for developing RESTful Service,  it is from JSR 311 (obsolete) and JSR 339. Setting up spring-boot Application : Following figure show us the project structure in Eclipse. 1. Maven pom.xml We need only one dependenc...

Read More

While developing Spring Boot enterprise application Logback makes an excellent choice for logging framework integration. Logback is fast and easy to integrate with a Spring Boot application. Logback requires very less amount of memory thus reduces the logging overhead for enterprise applications. To integrate Logback with Spring Boot application do...

Read More

What is Swagger Swagger is a specification for documenting REST APIs. It describes the api format including URL, method, and representation to describe REST web services. Swagger is meant to enable the service producer to update the service documentation in real time so that client and documentation systems are moving at the same pace as the server...

Read More

There are two ways to change the HTTP PORT of the embedded Tomcat in a Spring Boot Application. In a standalone Spring – BOOT application the default HTTP port is 8080. But we can set a  a customized port with server.port  configuration (e.g. in application.properties or as a System property).  Modify application.properties:  Add the following conf...

Read More

This project lets you annotate security or other interceptors for your Spring web controllers in much the same way that you normally annotate your routes or endpoints. For example, to secure all the endpoints in your @Controller class, add a @Before annotation like this (you can also add it to individual methods for more granular control): @Befor...

Read More

In a Spring Boot Application setting up the context path and port number to access the application, is configurable. It can be set in a properties file called application, which should reside under  src\main\resources in your application structure. The properties file is available in two formats .yml .properties The way you specify or set the confi...

Read More

Here in this Article are going to develop a spring-boot application integrated with apache cassandra . The application will exposes some REST Apis to perform CRUD operation in a database of Students. We are going to use DataStax driver to communicate with Apache Cassandra. Let us configure our Database first. Following steps are required to configu...

Read More

What is a Filter :  A Filter is an object that performs filtering tasks on either the request to a resource (a servlet or static content), or on the response from a resource, or both. Filters perform filtering in the doFilter method. Every Filter has access to a FilterConfig object from which it can obtain its initialization parameters, a reference...

Read More

Nowadays with micro service based architecture software components are communicating with each other. In such scenarios there are chances for temporary self-correcting faults. Such faults includes the temporary unavailability of a service, momentary loss of network connectivity, or TimeoutExceptions that arise when a service is busy or not respondi...

Read More

Thymeleaf is an awesome templating engine backed by spring framework. It allows HTML developers with no knowledge of templating engine to integrate their work into the application easily. This tutorial will show how to quickly integrate thymeleaf into your spring application. We will create a simple page that displays a welcome message once you hit...

Read More

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". Here we have created some projects in spring boot which can help you to understand better about spring boot.  ninja-panda spring-boot-web spring-boot-cassandra-datastax  Spring Boot Cassandra integration using Datastax driver  spring...

Read More

Inversion of control (IOC) or Dependency Injection (DI) is a term used to resolve component dependencies by injecting an instantiated component to satisfy dependency as opposed to explicitly requesting a component. So components will not be explicitly requested but components are provided as needed with the help of an Inversion of controller contai...

Read More

Inversion of control (IOC) or Dependency Injection (DI) is a term used to resolve component dependencies by injecting an instantiated component to satisfy dependency as opposed to explicitly requesting a component. So components will not be explicitly requested but components are provided as needed with the help of an Inversion of controller contai...

Read More

“Microservice” is a buzzword these days and many tech-savvy organizations are adopting microservices to create independent, highly scalable and easily maintainable services that exhibit highly single responsibility principle. Spring boot plays a major role in helping developers build microservices from scratch. To achieve this highly scalable archi...

Read More

As per Spring's documentation, Spring Boot allows us to externalize configurations, so you can work with the same application code in different environments. You can use property files, YAML files, environment variables, and command-line arguments to externalize configurations. But in this article we will mostly check how to read configurations fro...

Read More

This is a guide to create a simple RESTful web service with Spring-Boot 2.0.0.RELEASE. We are going to integrate Spring Cloud Consul with this application for reading configurations. We have used Swagger 2.8.0 release for documenting our REST APIs. Spring Cloud Consul : Spring Cloud Consul provides Consul integrations for Spring Boot apps through a...

Read More

In this article we are going to create a sample Spring Boot application for uploading large files using Swagger-UI. The api exposed for uploading large files can receive HTTP multi-part file upload request. What we will need to build the Application  JDK 1.8 or later  Maven 3.2+  A favorite text editor or IDE, You can also import this example code ...

Read More

In this article, we will learn to configure SSL (HTTPS) in a Spring Boot application using a self-signed certificate. For enabling SSL of a  Spring Boot application on the embedded Tomcat, We need to follow these steps. Create a SSL Certificate: Generate a self-signed certificate or you can use a certificate issued by a trusted Certificate Authorit...

Read More

FOLLOW US ON LinkedIn



Explore Tutu'rself