Abstract DAO pattern and Spring's “Proxy cannot be cast to …” problem!

后端 未结 2 579
难免孤独
难免孤独 2020-12-06 07:16

I know this is very often asked , but I cannot find a working solution :

This is my AbstractDAO :

public interface AbstractDao
{
  public T          


        
2条回答
  •  萌比男神i
    2020-12-06 07:28

    yes spring always creates proxy classes and thats how it actually discovered non intrusive weaving and aop by xml config... try googling for that error in spring documentation there shud be rules to follow and work arounds.

提交回复
热议问题