Home » Enterprise Java » spring » Boot (page 3)

Boot

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 »

Spring Boot REST API with Swagger Example

Welcome readers, in this tutorial, we will create a spring boot restful api application to integrate with the swagger2 tool. 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 ...

Read More »

Spring Boot Thymeleaf HelloWorld Example

Welcome readers, in this tutorial, we will explore the integration of Thymeleaf template engine with the Spring Boot module of the spring framework. 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 ...

Read More »

Spring Boot Crud Operations Example

Welcome readers, in this tutorial, we will explore the crud operations in spring boot module of the spring framework. 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 ...

Read More »

Spring Boot SOAP Service with Hibernate Example

1. Introduction Java Persistence API (JPA) is Java’s standard API specification for object-relational mapping. Hibernate is a JPA provider and provides a framework for mapping an object-oriented domain model to a relational database. Spring Boot defines a list of starter projects, in which each project includes a set of default component dependencies and an automatic configuration of components. The Spring Web Service starter project enables developers to ...

Read More »

Spring Boot WAR Deployment Example

In this post, we feature a comprehensive Example on Spring Boot WAR Deployment. We will demonstrate how to convert a Spring Boot JAR web application to a WAR file that can be deployed to a servlet container. 1. Introduction Spring Boot has become very popular among web application developers. Spring Boot will automatically configure a DispatcherServlet and register HandlerMappings, Adapters, ...

Read More »

Spring Boot REST API Tutorial

In this tutorial, we will review REST API concepts and provide an example of REST API development using Spring Boot. 1. Introduction We have heard quite a lot about REST recently. REST (Representational State Transfer) is an architectural style that describes principles and outlines constraints for developing web services on the internet.         Table Of Contents 1. ...

Read More »

Spring Boot Hello World Example

In this post, we will demonstrate a Spring Boot Hello World application. 1. Introduction If you have worked with Spring projects in the past, you might agree that they require quite a bit of configuration. Some of this configuration is boilerplate code related to infrastructure and has nothing to do with business requirements. Spring Boot is a technology that will ...

Read More »

Spring Boot Security Example

Hi Spring Boot fans. Today, we will follow how Nick added Spring Boot Security to his web application. We will see how Nick protects his resources by adding Spring Boot Security. Spring Security provides a wide-range of security services services for Java EE-based enterprise software applications. The two main areas of application security that Spring Security targets are “authentication and ...

Read More »

Spring Boot Actuator Example

The Spring Boot Actuator helps you monitor and manage your application when you deploy it to production. Monitoring, gathering metrics, understanding the state of your app, etc. can be automatically applied when using this library. There are two ways of managing and monitoring your application, HTTP endpoint and JMX. This example demonstrates the HTTP endpoint. 1. Tools Apache Maven Mars ...

Read More »