Connection is read-only. Queries leading to data modification are not allowed

Connection is read-only. Queries leading to data modification are not allowed
spring配置该方法只读了。

<bean id="txProxyTemplate" abstract="true"
       class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
       <property name="transactionManager" ref="transactionManager"/>
       <property name="transactionAttributes">
           <props>
              <prop key="affirm*">PROPAGATION_REQUIRED</prop>
              <prop key="gen*">PROPAGATION_REQUIRED</prop>
               <prop key="save*">PROPAGATION_REQUIRED</prop>
               <prop key="update*">PROPAGATION_REQUIRED</prop>
               <prop key="create*">PROPAGATION_REQUIRED</prop>
               <prop key="process*">PROPAGATION_REQUIRED</prop>                               
               <prop key="delete*">PROPAGATION_REQUIRED</prop>               
               <prop key="remove*">PROPAGATION_REQUIRED</prop>
               <prop key="send*">PROPAGATION_REQUIRED</prop>
  <prop key="upload*">PROPAGATION_REQUIRED</prop>               
               <prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
           </props>
       </property></bean>

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