java.lang.ClassCastException: "That's true - your bean is proxied to wrap it with transaction support (as you have requested in the configuration). And proxies used by Spring proxying by default (JDK proxies) proxy interfaces implemented by class, not class itself. If you absolutely need to you may instruct Spring to use CGLIB-proxying by setting proxy-target-class=true (see Spring Reference for details, but it is not advisable. Progamming to interfaces is a way to follow."
'via Blog this'
No comments:
Post a Comment