Home » Enterprise Java » spring

spring

Spring Boot JWT Authentication Example

Welcome readers, in this tutorial, we will implement the security mechanism with JSON Web Token (popularly known as JWT’s) in a spring boot application. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code It creates applications that are packaged as jar and are directly started using ...

Read More »

Spring Boot FreeMarker Configuration Example

Welcome readers, in this tutorial, we will implement the Freemarker configuration in a spring boot application. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code It creates applications that are packaged as jar and are directly started using embedded servlet container (such as Tomcat, Jetty or ...

Read More »

Spring Boot Ehcache Example

Welcome readers, in this tutorial, we will explore EhCache integration with spring boot application. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code It creates applications that are packaged as jar and are directly started using embedded servlet container (such as Tomcat, Jetty or Undertow). Thus, ...

Read More »

Spring JDBC StoredProcedure Class Example

Stored Procedures are a set of compiled SQL statements residing in the database. In this tutorial, we will explore how to create a simple stored procedure in the MySQL database and call it in a spring boot application. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready ...

Read More »

Spring Boot JPA MySQL Example

In this example, we will demonstrate how to build a CRUD application using Spring Boot, JPA, and MySQL. 1. Introduction If you worked on enterprise applications in the past, you probably wrote SQL for querying a relational database.  If you are a Java developer, you also had to use JDBC for connecting to the database and executing queries.  (Java Database ...

Read More »

Spring Boot MongoDB Crud Operations Example

Welcome readers, in this tutorial, we will explore the MongoDB Crud operations in a spring boot application. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code It creates applications that are packaged as jar and are directly started using embedded servlet container (such as Tomcat, Jetty ...

Read More »

Spring Boot JAX-RS Example

In this example, we will demonstrate how to build a JAX-RS web service with Spring Boot. 1. Introduction REST (Representational State Transfer) is an architectural pattern for developing web services.  It is used in many web services development projects because it is lightweight, stateless, and is therefore easily scalable. Java API for RESTful Web Services (or JAX-RS) is a Java ...

Read More »

Spring Boot ElasticSearch Tutorial

Welcome readers, in this tutorial, we will explore the Elasticsearch functionality in a spring boot application. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code It creates applications that are packaged as jar and are directly started using embedded servlet container (such as Tomcat, Jetty or ...

Read More »

Spring Boot Application Properties Example

In this example, we will demonstrate how to configure a Spring Boot application using the application.properties file. 1. Introduction Spring Boot is an application development solution that will automatically configure your Spring application for you, helping you get your project up and running as quickly as possible.  It will consider the dependencies in your project and will use an opinionated ...

Read More »

Spring Boot @CrossOrigin Annotation Example

Cross-origin resource sharing (CORS) is a standard protocol that defines the interaction between a browser and a server for safely handling cross-origin HTTP requests. Simply put, a cross-origin HTTP request is a request to a specific resource, which is located at a different origin, namely a domain, protocol and port, than the one of the client performing the request. For ...

Read More »