Home » Enterprise Java » spring

spring

IoC Spring Example

In this post, we feature a comprehensive article about IoC Spring. We will discuss Inversion of Control and how it is applied in Spring. 1. IoC Spring – Introduction Inversion of Control is an OOP design principle for writing code that is loosely coupled. The objective is to outsource certain responsibilities typically performed by a class to an external entity, ...

Read More »

Spring Framework Example

Spring Framework is unarguably the most in-demand framework in the Java Enterprise development ecosystem. In this article, I am going to showcase a simple example using Spring Framework. If you are new to Spring, I encourage you to get a basic understanding of the concepts behind the Spring framework. One of my earlier articles What is Spring Framework can be ...

Read More »

What is Spring Framework ?

The Spring Framework is an open-source, lightweight application framework and Inversion of Control container for Java platform. The first version of the Spring Framework was released in 2003. The increasing popularity of the framework among Java developers kept it evolving, most recent being Spring 5. In this article, we are going to learn about Spring’s architecture, core features, different modules ...

Read More »

JasperReports with Spring Boot

Welcome readers, in this tutorial, we will show how to use JasperReports with spring boot 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 Tomcat, Jetty or ...

Read More »

What is Spring Boot ?

In this post, we feature a comprehensive article explaining what is Spring Boot. Java is a ubiquitous language and Spring/ Spring Boot has become default frameworks of choice for Java Web developers. Spring is one of the market-leading frameworks for building web and enterprise applications. With the rise of the Spring framework there comes a lot of hurdle in configuring ...

Read More »

Spring @AliasFor Annotation Example

In this example, we will show how to use the @AliasFor annotation in Spring. 1. Introduction Annotations are decorators that provide metadata about classes, methods, parameters or fields. Depending on the annotation, metadata may be processed at compile-time and/or runtime. Examples of annotations include: JUnit annotations (@Test, @Before, @After)JPA annotations (@Entity, @Table, @Id)Spring Framework annotations (@Controller, @Configuration, @Autowired) Meta-annotations are ...

Read More »

Spring Boot H2 Database Example

Welcome readers, in this tutorial, we will create a spring boot application that connects to an h2 database. 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, ...

Read More »

Spring Boot Oracle Connection Example

This article is a Spring Boot Oracle Connection Example. Oracle (Oracle database/RDBMS) is a proprietary multi-model database management system made and marketed by Oracle Corporation. It’s one of the most popular databases used in the world. This article will show you how to connect Spring Boot to an Oracle database. 1. Tools and Requirements Oracle XE free download – requires ...

Read More »

Customize Whitelabel Error Page in Spring Boot

Welcome readers, in this tutorial, we will explore how to create a custom whitelabel error page 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 ...

Read More »

Setting Up EhCache Without the XML Hassle

1. Introduction In this example, we will go over an easy way to set up EhCache without the XML hassle. This example utilizes the simplicity of Spring Boot and Spring’s Cache annotations. If you are on this page, I can assume you are likely familiar with EhCache. But, just in case, let’s do a short recap. EhCache is an open-source, ...

Read More »