org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are

可能是因为在配置事务传播特性的时候,将这种操作配置为了readOnly
	<!-- 事务的传播特性 -->
	<tx:advice id="txAdvice" transaction-manager="transactionManager">
		<tx:attributes>
			<tx:method name="add*" propagation="REQUIRED"/>
			<tx:method name="del*" propagation="REQUIRED" />
			<tx:method name="update*" propagation="REQUIRED"/>
			<tx:method name="*" read-only="true"/>
		</tx:attributes>
	</tx:advice>

你可能感兴趣的:(java,DAO)