File Upload Example Using Spring REST Controller

File Upload File upload example using Spring REST Controller will show you how to upload a file when selected for uploading from any client (browser or any client) and Spring REST service is used as a server side technology for uploading the file. The file may be any type, i.e., such as excel, text, word, pdf etc. HereIe will create…

Spring Data JPA Entity Auditing Using EntityListeners

JPA Entity Auditing The tutorial Spring Data JPA Entity Auditing using EntityListeners will show you how you persist the audit log using JPA’s built-in functionality. Spring Data  JPA provides sophisticated support to transparently keep track of who created or changed an entity and at what time. To benefit from this functionality you have to equip your entity classes with auditing metadata…

Spring Data JPA Batch Insertion

Introduction The example, Spring Data JPA Batch Insertion, will show you how you can insert a large dataset into a database at once using Spring Data JPA. For this tutorial I will create a Spring Boot project in Eclipse. I will also see how Spring @Transactional annotation works. Spring transaction required in order to rollback the inserted data at any…

Hibernate UserType Example using Spring Data JPA

Introduction I am going to show you here what is UserType and why do you need UserType while working with database and web application. In Hibernate UserType Example using Spring Data JPA I will show you how Hibernate allows you to implement and use custom types when built-in types do not satisfy an application’s requirements, or when you want to…

Spring EnableEncryptableProperties with Jasypt

EnableEncryptableProperties – Jasypt Spring EnableEncryptableProperties with Jasypt shows an example how to avoid clear text password for database connection’s credentials in properties file. Jasypt means Java simplified encryption. Here I am going to use Spring Boot with Jasypt (Java simplified encryption). Here I am also going to use Spring Data JPA to perform the data layer activities with database. If…

Spring Boot Internationalization Example

Introduction Spring Boot Internationalization Example will show you how to make an web based application in different languages. Internationalization or Localization will render the web page content based on your chosen language in which you want to view the page. At present though browser gives you an option to translate the page into other language using which you browse the…

SOAP over HTTPS with Client Certificate Authentication

Introduction The tutorial, SOAP over HTTPS with client certificate authentication, will show you how we can use client certificate to handshake with server along with basic authentication for consuming the service. We have also seen how to authenticate by sending authentication information over http headers in SOAP web service but here we will use client certificate (jks file) as a…

Integrate npm web app in Spring Boot with Gradle

Integrate npm web app in spring boot with gradle is basically a multi-module project as we have seen in our earlier tutorials here with maven build in spring boot and here with maven in Eclipse. But the example on integrate npm web app in spring boot with gradle uses gradle to build the project. Here we basically create two modules…

Configure JNDI DataSource with Spring Boot

Introduction In this post I will show you how to configure JNDI datasource with Spring Boot applications. JNDI (Java Naming Directory Interface) data source is very similar to JDBC (Java Database Connectivity) data source. I will show examples on Oracle as well as MySQL database servers. The MySQL version example is downloadable at the end of this tutorial. I will…

Spring Boot MVC AutoComplete Using jQuery

Auto Complete Autocomplete allows you to easily create autocomplete and auto-suggest boxes for text input fields. When you start a search on Google, you can find the information you are looking for using search predictions. Search predictions are possible search terms you can use that are related to the terms you are typing and what other people are searching for….