I want to create a new object per request, and my code is like: @Scope(IOCConstants.PERTHREAD_SCOPE) public Encoder buildEncoder() { System.out.println("new Encoder()...*****************************"); return new Encoder(); }
when i request my page with IE and FireFox, the output is "new Encoder()...*****************************", only print once! is there anything wrong with my code?