错误信息
经检查,是由expression路径与新加入的service路径不同造成的
在以AspectJ方式定义AOP的时候, 会定义service的路径
如
<aop:advisor pointcut="execution(* com.**.service.*.*(..))"
如果新加的service不在execution的路径中,并使用到了那个service,就会抛出这个异常了
黑色头发:http://heisetoufa.iteye.com/
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.
经检查,是由expression路径与新加入的service路径不同造成的
在以AspectJ方式定义AOP的时候, 会定义service的路径
如
<aop:advisor pointcut="execution(* com.**.service.*.*(..))"
如果新加的service不在execution的路径中,并使用到了那个service,就会抛出这个异常了
黑色头发:http://heisetoufa.iteye.com/