How can I implement SecurityContextHolder in a generic base service while adhering to SOLID principles
I have an abstract base service that includes basic CRUD operations. However, there’s a situation where, for example, when saving a Post entity, I also need to save the User information who created the post, as Post and User are related entities.