Java中自带的动态代理InvocationHandler接口、Proxy类只能针对接口进行动态代理
解决:
1.在main方法里用接口
IColumnService columnSrvlmpl=(IColumnService)context.getBean("columnSrvlmpl");
2.在xml里添加
<aop:config proxy-target-class="true"></aop:config>
Java中自带的动态代理InvocationHandler接口、Proxy类只能针对接口进行动态代理
解决:
1.在main方法里用接口
IColumnService columnSrvlmpl=(IColumnService)context.getBean("columnSrvlmpl");
2.在xml里添加
<aop:config proxy-target-class="true"></aop:config>