问答详情
源自:5-1 编程式事务管理

配置转账业务层的bean时抛出cannot cast to 异常

java.lang.ClassCastException: com.hit.SpringTransactionProgrammatic.TransferServiceImpl cannot be cast to com.hit.SpringTransaction.TransferServicehttps://img.mukewang.com/5af994b2000126ae17510250.jpg

提问者:咕嘟咕嘟和布鲁鲁 2018-05-14 21:52

个回答

  • chr1sgong
    2018-05-16 00:16:09

    看看你的TransferServiceImpl类有没有implements TransferService接口