Using JdbcTemplate with Spring Boot

Post Header

Introduction Spring Boot provides support to typical JDBC operations via jdbcTemplate. With JDBC templates, you can perform complex database operations which are not possible through JPA. Starter Dependencies JDBC templates feature is part of Spring JDBC module. This means that either JPA starter or JDBC starter will bring this support. As we don’t need JPA … View This post

Derby Embedded Database for Spring Boot

Post Header

In this post, We will see how we can use Apache Derby embedded database with Spring Boot applications with an example. Introduction Apache Derby is a pure java implementation of a relational database. Also, it complies to JDBC and RDBMS standards. For this reason, we can easily embed Derby into applications. Derby Dependencies To include … View This post

Drools integration for Spring Boot with Example

Lets learn how to integrate Drools with Spring Boot application for business rules management with an Example. Drools is a Business Rule Engine that is based on Java Rules API. It lets you create complex applications where the business logic changes a lot post development. Introduction For example, you may run a shopping website that … View This post

Boolean in Thymeleaf for Conditional Evaluation

Post Header

Thymeleaf relies a lot on boolean conditionals to render the HTML views. In this post, we will see how thymeleaf handles boolean values. Boolean expressions in Thymeleaf Everything can be evaluated into boolean in thymeleaf. To categorize, The following values are considered false. An expression or a literal that is false. A String literal that equals … View This post

Handling Lists in Thymeleaf view

Post Header

In this article, We will see how to handle Lists in thymeleaf templates with an example using th:each attribute. Loop through a Lists Let’s create a list of Objects first and then supply it to the Model and View. For this reason, We created a UserInfo object. The list we are going to use in our thymeleaf model is … View This post

Thymeleaf CRUD web Application with Example

Post Header

In this post, We will try to create a Simple Thymeleaf CRUD web application using Spring Boot. A CRUD application lets you Create, Read, Update and Delete things like files, database entries etc. With the help of JPA repositories and their built-in methods, it’s easy implement this. In this guide, we’ll learn how to build a CRUD web application with … View This post

Customizing spring Session Cookies

By convention, most of the java web application use JSESSIONID as the cookie name to store the session key. In this post, We will see how this cookie behaviour can be changed. Typical behaviour In session based authentications like Form-Login and CAS(Central Authentication System), the session is established via cookies. This is done by sending a Set-Cookie header after … View This post