spring security与aop的配置 出现冲突

    <security:global-method-security pre-post-annotations="enabled" />
     <!--<aop:aspectj-autoproxy proxy-target-class="true" />-->

这2个注解是否有冲突, 报了一个context协商 异常

具体报错信息?如果有冲突可以删除一个试试,如果还是报一样的错误说明不是该原因导致