Spring Boot Tutorial Topics

Spring Boot H2 Database Example with Hibernate

By Dhiraj Ray, 19 March,2017

This tutorial explains about using H2 database in spring boot application with hibernate as a JPA provider. Here we will be creating a spring boot H2 database example app which will have REST endpoints exposed and perform some db operations. We will also take a look into accessing H2 db console in spring boot along with spring security integration.... Read more ➤

Spring Data JPA Example + Spring Boot

By Dhiraj Ray, 15 March,2017

In this tutorial we will take a look into spring data jpa in detail. We will see integratation between spring data and spring boot with examples. We will perform different crud operations using spring data and check out different ways and advantages of using it. We will have some REST endpoints exposed through spring controller and we will be invoking... Read more ➤

Spring Boot + Hibernate 5 + Mysql Example

By Dhiraj Ray, 13 March,2017

This article is about integrating spring boot with hibernate. Here, we will be using spring boot 1.5.1 and hence by default it will be hibernate 5 configurations. We will be creating sample spring boot hibernate example having some rest endpoints exposed through spring controller. The dao class will have sessionFactory injected which will be used to create hibernate session... Read more ➤

Enums as Request Parameters in Spring Boot Rest

By Dhiraj Ray, 20 February,2017

In many enterprise application categorical variable is often required to restrict the user request. In java, we achieve it by using enums. Most of the time we define enums in model classes and expect users to provide the exact enums in the request. This also adds one level of validation in any incoming request to the server... Read more ➤

Spring Boot Mvc + Apache Tiles Example

By Dhiraj Ray, 18 February,2017

This article is about spring boot mvc apache tiles integration.Here we will be creating a spring mvc app with spring boot 1.5 using apache tiles 3 layout. We will be creating different reusable page fragments such as header, body, footer using jsp and assemble them in a single jsp page at runtime using configuration file tiles.xml.... Read more ➤

Spring Boot Actuator Rest Endpoints Example

By Dhiraj Ray, 10 February,2017

In this post, we will be discussing about the different features of spring boot actuator with examples. We will be creating an example spring boot app and integrate actuator in it. The example will demonstrate the different actuator endpoints, customizing endpoints, securing endpoints and also creating custom actuator endpoints.... Read more ➤

Spring Boot Actuator Tutorial Guide

By Dhiraj Ray, 09 February,2017

Today, we will be discussing about spring boot actuator in great details. Starting from the overview, we will deep dive into actuator concepts, configuring actuator in spring boot applications, customizing endpoints and also provide... Read more ➤

Spring Boot MVC + JSP Example

By Dhiraj Ray, 01 February,2017

This post is about integration of spring boot mvc with jsp.Here, we will be developing a spring MVC boot app in integration with jsp using spring controller.We will also take advantage of tomcat-embed-jasper artifact of spring boot to render jsp.So let us start by defining our... Read more ➤

Spring Boot + Websocket + Example

By Dhiraj Ray, 28 January,2017

Hello friends, let us again walk through creating websocket connection with java but this time with spring and STOMP protocol.We will also make use of Spring security to restrict websocket server reply to a particular client instead of broadcasting to all clients.Here, We will be using spring boot features... Read more ➤

Spring Boot Session + STOMP + Websocket + Javaconfig

By Dhiraj Ray, 21 December,2016

In this post, we will be discussing about how to maintain spring session during websockets connection through HandshakeInterceptor.Doing so we can track user session during every websocket request and can utilize this session to track client activities from the server even after the server is connected through websocket prorocol.Now, let see by code how we can achieve it using Spring boot.... Read more ➤

Spring Boot + Thymeleaf  Example

By Dhiraj Ray, 05 December,2016

Today let us discuss about what is Thymeleaf, why Thymeleaf is required and also about how to integrate Thymeleaf with Spring Boot with a simple example.Thymeleaf is a Java XML/XHTML/HTML5 template engine that can work both in web (Servlet-based) and non-web environments. It is better suited for serving XHTML/HTML5 at the view layer of MVC-based web applications, but it can process any XML file even in offline environments.... Read more ➤

Spring Boot + MVC +Embedded Tomcat + Example

By Dhiraj Ray, 29 November,2016

In this post we will be developing a sample spring MVC app with spring boot features using maven. As we know, spring boot avoids all the boilerplate code and configurations that we generally do while developing a new spring project like adding build path or maven dependencies... Read more ➤

Spring Boot + WebSocket example without STOMP and SockJs

By Dhiraj Ray, 05 November,2016

In this post we will be discussing about Spring framework support for raw webSocket.Spring supports STOMP over WebSocket but the use of a subprotocol is not mandatory, you can deal with the raw websocket without STOMP.When using a raw websocket, the message sent lacks of information... Read more ➤

Suggest more topics in suggestion section or write your own article and share with your colleagues.