2015年9月9日 星期三

[Spring Bean] A Summary on why @Autowired field got null value


  1. The object is instantiated via "new Object()" rather than in app context pool
    How to check
    Via Eclipse Debug > stacktrace > check where the instance are from 

沒有留言:

張貼留言

日常秘技小輯錄

媽媽傳授: 用爉燭塗在線上縫紉,可以更容易打結,以及拉縫線更順 爸爸傳授: 貼玻璃紙前在玻璃面塗上肥皂水,可以移動玻璃紙不留摺痕