Tagged articles
3 articles
Page 1 of 1
Meituan Technology Team
Meituan Technology Team
Oct 1, 2016 · Backend Development

Debugging Spring MVC @Service Bean Injection Issues with JMap and JHat

The article explains how a Spring MVC service bean was duplicated across root and child WebApplicationContexts, causing a null‑injected instance that triggered a NullPointerException, and shows how JMap and JHat were used to locate the two beans and resolve the issue by adjusting component‑scan filters or removing the @Service annotation.

Bean InjectionDebuggingJava
0 likes · 14 min read
Debugging Spring MVC @Service Bean Injection Issues with JMap and JHat