Spring AOP at Service Layer

后端 未结 2 680
滥情空心
滥情空心 2020-12-29 13:07

I need some help with Spring AOP. I\'ve the following code:


@Service
public class UserSecurityService implements UserDetailsService {

    @Autowired
          


        
2条回答
  •  攒了一身酷
    2020-12-29 13:49

    Spring has decided to use a J2SE proxy (com.sun.proxy.$Proxy57) probably because CrudService implements an interface.

    @samlewis: This sentence that you wrote pushed me to create interfaces to my Services and when I did that, LoggingAspect worked really fine. So, I'm not using proxy-target-class=true.

    Thanks a lot for your time.

提交回复
热议问题