bean如果实现了接口,getBean的返回值要用接口来接收,不能直接用实现类,否则可能报:

java.lang.ClassCastException: com.sun.proxy.$Proxy9 cannot be cast to