Category: Spring 5 MVC

Nested Transaction Implementation 0

Nested Transaction Implementation

There are two classes OrderService and OrderRepository,  OrderRepository will be called inside of OrderService. OrderRepository inserts one record of order into the database. My Purpose: When an exception happens in OrderRepository or OrderService, the transaction will rollback and...

0

Read Properties file in Spring MVC for XML and Java Code

Spring allows us to externalize String literals in its context configuration files into external properties files in order to separate application-specific settings from the framework-specific configuration. You can use the property values in context...