Spring : How To Load Properties File using @Value Annotation


This example shows how to load the properties file values using the @Value annotation. Accessing the property file values in the Spring application involves the following steps: Add the property file details to spring bean configuration file. You have to use the “classpath” prefix if you want to load the files from the classpath. Create […]

Transaction Control Using Annotations in Spring Framework


In this article I’ll discuss the use of the Spring Framework Transactions, to make the application more secure and without inconsistencies. But before you initiate a transaction in Spring, let’s first understand what are transactions. The transaction concept can be described with the acronym ACID. 1. Atomicity:- A transaction must be treated as a single […]