org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.
在appCtx-db.xml中配置了事务传播属性,<prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
使用符合规则的方法名则可以了