Home » Enterprise Java » Page 30

Enterprise Java

Spring vs Spring Boot Example

1. Spring vs Spring Boot Welcome to the Spring vs Spring Boot example. First and foremost, this is not Spring MVC vs Spring Boot. So you won’t find any discussion relating to web. The example that will be shown here is the simplest thing that could possibly work to show the difference between Spring and Spring Boot. When we speak ...

Read More »

Spring RowMapper Example

Spring Jdbc framework provides a mechanism to fetch the records from a database using the query() method. This tutorial will explore the Spring Jdbc connectivity to fetch the records from the relational database. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the ...

Read More »

Logback Kafka Appender Example

This article discusses Kafka as a logging destination for a Java application. In this tutorial, We will use logback as the logging framework. 1. Logback Kafka Appender – Introduction Logback is designed to be the successor for Log4j. It has been developed by the same development community. These are some of the advantages logback has over log4j Faster implementation – ...

Read More »

Spring Prototype Bean Scope Example

In the spring framework, developers can create beans using the in-built spring bean scopes. Out of five in-built scopes, Singleton and Prototype are primary and available in any type of IOC containers. This tutorial will explore the Prototype bean that returns a new bean instance for each and every request. 1. Introduction 1.1 Spring Framework Spring is an open-source framework ...

Read More »

Spring @Primary Annotation Example

Spring framework provides a mechanism to automatically inject the multiple dependencies of the same data-type. During the process, NoUniqueBeanDefinitionException is thrown indicating that only one candidate bean can be injected. This tutorial will explore the Spring-specific @Primary annotation that automatically gives a higher preference to a particular bean definition. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created ...

Read More »

Spring Singleton Bean Scope Example

In the spring framework, developers can create beans using the in-built spring bean scopes. Out of five in-built scopes, Singleton and Prototype are primary and available in any type of IOC containers. This tutorial will explore the Singleton bean that returns a single bean instance per IOC container. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to ...

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 »

JBoss WildfFly Logging Configuration Example

1. Introduction In this example we will review the WildFly logging subsystems. We will apply the configuration to a Web application to generate a separate log files for our application instead of writing it to default server log file. 1.1 WildFly WildFly is an application server written in Java that implements Java EE specification. It’s a fast and lightweight server. ...

Read More »

Spring Security Angular 6 Basic Authentication Example

1. Introduction In this post, we feature a comprehensive Example on Spring Security, Spring Boot and Angular to demonstrate how you can secure your Angular application using Basic Authentication via Spring Security. You will learn to use Spring Boot for quickly building a Java backend layer and then adding a maven dependency for making it secure. We will use Angular ...

Read More »

Spring @ResponseBody Annotation Example

Welcome readers, in this tutorial we will show how to implement the Spring @ResponseBody Annotation to return a Json response from a Spring Mvc Controller. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the Spring framework is its layered architecture, which allows ...

Read More »