我采用aop来实现日志集中处理,因此配置了如下代码 <bean id ="exceptionLog" class="com.spring.exception.ExceptionLog"/>
<bean id="exceptionHandlereAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
<property name="advice">
<ref bean="exceptionLog"/>
</property>
<property name="patterns">
<value>.*.*</value>
</property>
</bean>
错误原因:
Error creating bean with name 'dataSource': Bean with name 'dataSource' has been injected into other beans [sessionFactory] in its raw version as part of a circular reference, but has eventually been wrapped (for example as part of auto-proxy creation). This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.请求帮助