Mastering Spring Security: Configuration and Best Practices