Spring Bean Life Cycle is very important because in many applications, we want to create some operations before initializing a Bean or make some operations before bean’s destruction.
This tutorial introduce four ways to control life cycle events of a Bean.
[Continue reading…] “Spring Bean Life Cycle – Callback Interface, Custom Method, Annotation, Aware Interface”
The tutorial shows you the way to implement Bean Scopes (Singleton, Prototype, Request and Session) using Annotation @Scope. Except Singleton and Prototype Scope, the others are only valid in the context of a web-aware Application.
Related Article: Spring Bean Scope – Singleton and Prototype
[Continue reading…] “Spring Bean Scope using Annotation – Singleton, Prototype, Request, Session, Global Session, Application”
Elasticsearch is a distributed, full-text search engine based on Lucene with JSON schema. It is an open source and implemented by Java.
– ElasticSearch – Structure of a Search Request/Response
– ElasticSearch Filter vs Query
– ElasticSearch Full Text Queries – Basic
[Continue reading…] “Elasticsearch”
Spring Bean Scopes helps you control the scope of the objects which are created from bean definition. This approach is wonderful because you can choose the scope by configuring bean instead of working at Java class level.
The Spring Framework supports 7 scopes, but this tutorial introduces you 2 of them: singleton scope and prototype scope. The others will be discussed in next article.
[Continue reading…] “Spring Bean Scopes – Singleton and Prototype”
Spring supports us the way to inject Collection with type: List, Set, Map and Properties. So we can pass a bundle of direct data values or reference of beans to Collection Objects.
The tutorial shows you how to use XML configuration to do those things.
How to use Spring Factory Method to create Spring Bean
[Continue reading…] “How to inject Collection in Spring”
Procrun is a set of applications that allow Windows users to wrap (mostly) Java applications (e.g. Tomcat) as a Windows service. The service can be set to automatically start when the machine boots and will continue to run with no user logged onto the machine.
The tutorial will guide you how to create a Windows Service for Spring Boot Application by Procrun.
[Continue reading…] “How to create a Windows Service for Spring Boot Application by Procrun”
Bean Definition Inheritance is a good solution for defining new bean which inherited certain bean conveniently.
We will learn how to use XML configuration to create Inheritance from Bean with parent or abstract template.
[Continue reading…] “Spring Bean Definition Inheritance | Spring Boot”
Aspect-Oriented Programming (AOP) helps us cut across many methods, objects and type within the application without embedding it in the business logic. With Spring AOP and AspectJ, you can add additional behaviour to existing code without modifying the code itself.
The tutorial guides you how to work with Spring AOP and AspectJ using Spring Boot.
[Continue reading…] “How to work with Spring AOP and AspectJ, Aspect, Advice, Pointcut, JoinPoint, Annotation | Spring Boot”
Apache ServiceMix is a flexible, a powerful runtime platform for integrations solutions.
The tutorial will introduce you how to use Service Mix with Apache Camel & ActiveMQ for routing message solution
Related Article: How to start Apache Camel: Message Router with Spring Boot
[Continue reading…] “Router Message: Apache Camel & Service Mix”
In tradition approach, implementing Data Access Layer makes lots of boilerplate code. Spring JPA is a part of Spring Data, helps us improve our codes and reduce efforts for development and maintenance. Spring JPA supports us the ways to write interface for repositories and custom finder methods, the implementation will be done automatically by Spring Framework.
The tutorial shows you how to use Spring JPA with PostgreSQL using Spring Boot.
– How to use Spring JPA MySQL | Spring Boot
– Spring JPA + PostgreSQL + AngularJS example | Spring Boot
– Angular 4 + Spring JPA + PostgreSQL example | Angular 4 Http Client – Spring Boot RestApi Server
– React Redux + Spring Boot + PostgreSQL CRUD example
– Spring Boot + Angular 6 example | Spring Data JPA + REST + PostgreSQL CRUD example
[Continue reading…] “How to use Spring JPA with PostgreSQL | Spring Boot”