`

Write operations are not allowed in read-only错误

    博客分类:
  • JAVA
阅读更多

rg.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'retrieveBirthdaySendSms' on target class [class $Proxy5] failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.

今天提示这个错误,原因是spring配置了一个制度的事物,修改事物的级别就OK了

分享到:
评论

相关推荐

    使用Spring引起的错误

    ### 使用Spring引起的错误:Write operations are not allowed in read-only mode (FlushMode.NEVER) #### 问题背景 在使用Spring框架时,特别是在与Hibernate结合的情况下,可能会遇到“Write operations are not...

    hibernate错误解决方案

    org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker ...

    Open_Session_In_View详解.doc

    org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker ...

    BURNINTEST--硬件检测工具

    Windows 98 and ME are not supported in BurnInTest version 5.3 and above. Use a version of BurnInTest prior to 5.2 for compatibility with W98 and ME. Windows 95 and Windows NT =======================...

    SSH1,JQuery的ajax返回json二维数组处理过程

    `web.xml`配置文件中的`OpenSessionInViewFilter`是为了在HTTP请求的生命周期内保持一个Hibernate的Session,这样可以在视图渲染过程中执行数据库操作,防止“Write operations are not allowed in read...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - ADD TFlexEllipse.Center - read-only public property. - FIX Trial packages now supports Delphi 2007 and Turbo versions (no changes for commercial packages). - FIX TFlexPanel.DragOver wrongs call the...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    In particular, do not add new parameters to the end of the function just because they are new; place new input-only parameters before the output parameters. This is not a hard-and-fast rule. ...

    Mask 98 for PRwin98

    Note: You are not allowed to distribute the PRWIN98.INI configuration file if it contains registered user details. However, please feel free to distribute the original, unregistered shareware files, ...

    微软内部资料-SQL性能优化2

    Because device drivers operate at DPC/dispatch level (covered in lesson 2), and page faults are not allowed at this level or above, most device drivers use non-paged pool to assure that they do not ...

    微软内部资料-SQL性能优化3

    Consistency and isolation are the most important in describing SQL Server’s locking model. It is up to the application to define what consistency means, and isolation in some form is needed to ...

    a project model for the FreeBSD Project.7z

    These are usually the most active developers who are willing to spend their time not only integrating their own code but integrating code submitted by the developers who do not have this privilege....

    数位板压力测试

    The interface publishes read-only information through a single information interface. Applications interact with the interface by setting up tablet contexts and consuming event packets. Applications ...

    Secrets of the JavaScript Ninja, 2nd Edition

    `const` creates a read-only reference to a value, preventing reassignment but allowing mutation: ```javascript const ninja = { name: "Yoshi" }; ninja.name = "Hanzo"; // Allowed ninja = { name: "Hanzo...

    Modern Operating Systems 3rd

    RAM (Random Access Memory) is volatile and provides fast access, while ROM (Read-Only Memory) stores firmware instructions. Modern systems also use cache memory to improve data access speeds. 3. **...

    吴建业作文观点汇总

    8. The traditional school is a place where children get training of the mind and character to produce self-control, habits of obedience as well as learn to write and read, 9. Lack adequate physical ...

    python3.6.5参考手册 chm

    Notable changes in Python 3.6.5 What’s New In Python 3.5 Summary – Release highlights New Features PEP 492 - Coroutines with async and await syntax PEP 465 - A dedicated infix operator for matrix...

Global site tag (gtag.js) - Google Analytics