Ibatis inserts the Blob type and the operation must be performed in the transaction. Otherwise, the following error occurs: Java. Lang. illegalstateexception. Remember,
--- The error occurred while applying a parameter map.
--- Check the notice. insert-inlineparametermap.
--- Check the parameter mapping for the 'content' property.
--- Cause: Java. lang. illegalstateexception: Spring transaction synchronization needs to be active for setting values in ibatis typehandlers that delegate to a spring lobhandler; Nested exception is com. ibatis. common. JDBC. exception. nestedsqlexception:
--- The error occurred while applying a parameter map.
--- Check the notice. insert-inlineparametermap.
--- Check the parameter mapping for the 'content' property.
--- Cause: Java. Lang. illegalstateexception: Spring transaction synchronization needs to be active for setting values in ibatis typehandlers that delegate to a spring lobhandler
Ibatis insert blob type