解决ssh中Connection is read-only. Queries leading to data modification are not allowed

在配置事物传播性的地方存在readonly:

<property name="transactionAttributes">
 <props>
	 <prop key="*">PROPAGATION_REQUIRED</prop>
		<prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
		<prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
		<prop key="find*">PROPAGATION_REQUIRED,readOnly</prop>
	</props>
</property>

把readonly去掉就可以了,但是很奇怪,以前也是这样的为什么没有报错?

你可能感兴趣的:(解决ssh中Connection is read-only. Queries leading to data modification are not allowed)