I've spent ten years on the unglamorous parts of fintech and retail software. Now I'm connecting them to LLMs.
Published elsewhere
On Baeldung
Practical tutorials for the Java and Spring community. Each link opens the article on Baeldung.
- 01How to Delay a Stubbed Method Response With MockitoThree ways to slow down a stub: Thread.sleep, answersWithDelay, and Awaitility for async tests.
- 02How to Autowire a Spring Bean in a Servlet FilterWhy @Autowired fails in a filter, and four fixes up to DelegatingFilterProxy.
- 03How to Parse XML to HashMap in JavaXStream, Jackson, JAXB, Underscore-java and plain DOM with XPath, compared.
- 04How to Mock Constructors for Unit Testing using MockitomockConstruction() from Mockito 3.4, and when dependency injection is the better answer.
- 05How to Deep Copy an ArrayList in JavaFive ways to get truly independent copies, from Cloneable to copy constructors to Jackson.
Archive
Writing, 2018 to 2023
Older posts from the WordPress years, mostly Spring. Links haven't changed.
2023
2020
- Serverless: AWS Lambda and Spring Cloud Function with the Twitter API
- How to Enable HTTPS (SSL/TLS) in a Java Spring Boot Application
- REST vs GraphQL: API Development with Spring Boot
- Payment Integration: React and Spring Boot with the Stripe API
- Web Scraping using JSoup: Getting Weekly Top Songs Project
- Reactive Programming in Spring: Introduction
- XML Parser in Java
2019 & 2018
hello@shahulbasha.com
Hiring for backend or AI engineering, or want to talk shop about Spring, Kafka or MCP servers? Email is the fastest way to reach me.