Exception in thread "main" java.lang.ClassCastException: $Proxy13

SpringAOP中報錯:Exception in thread "main" java.lang.ClassCastException: $Proxy13

導致原因:在你的業務邏輯中實現了接口

解決方案:

方案一:在配置文件beans.xml中的<aop:config>標籤中添加:

<aop:config proxy-target-class="true">:


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章