Category: Java Architecture

0

Disable Logback log files in containers

We found the spring boot project running containers will keep restarting after some time, maybe 10 days, maybe 5 days. The root cause is spring logback is writing log files into /tmp/ directory as...

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

Design Log Monitor System Prototype — 1. Spring MVC

Background In this article, a log monitor system is designed for one classic monolithic Spring MVC project, which contains three module layers: Controller, Service, and Repository. Requirement All system exceptions should be recorded. Pretty...