Enhancing Application Security: Advanced Techniques for Spring Security 6, JWT, and Comprehensive Testing