关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 7332|回复: 1

操作数据库时报错,UnavailableSecurityManagerException

[复制链接]
发表于 2020-4-2 08:35:05 | 显示全部楼层 |阅读模式
具体错误如下:
org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton.  This is an invalid application configuration.

Snipaste_2020-04-02_08-25-15.png

在执行数据库更新操作时报错,这是怎么回事啊
 楼主| 发表于 2020-4-9 10:19:54 | 显示全部楼层
自顶。
参考自:https://blog.csdn.net/woyaoyongh ... le/details/91862992
在ShiroConfig.java - securityManager():  添加ThreadContext.bind(securityManager);
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表