Write operations are not allowed in read-only mode
生活随笔
收集整理的這篇文章主要介紹了
Write operations are not allowed in read-only mode
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
報的錯誤如下:
解決辦法:
檢查發現自己的expression路徑與新加入的service路徑不同造成的
在以AspectJ方式定義AOP的時候, 會定義service的路徑 如:
<aop:pointcut expression="execution(* com.service.impl.*.*(..))"
id="allServicesMethod" />
如果新加的service不在execution的路徑中,并使用到了那個service,就會拋出上面所說的異常。
轉載于:https://blog.51cto.com/yuehaoyisheng/1211129
總結
以上是生活随笔為你收集整理的Write operations are not allowed in read-only mode的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: android 开机启动服务。
- 下一篇: android下m、mm、mmm编译命令