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

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

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

查看: 11122|回复: 0

[环境搭建] 登陆后台管理界面,spring后台不停打印Creating a new SqlSession

[复制链接]
发表于 2021-6-17 10:20:18 | 显示全部楼层 |阅读模式
       各位大佬们,本人小白一只,jeecg boot真是我的福音,我在学习jeecg的过程中遇到了一个问题,希望各位大佬能给我指点迷津。谢谢!
       我把jeecgboot源码下载完,环境搭好了之后,项目正常运行起来之后,我进入管理后台界面之后,每刷新一次页面,spring后台都会打印日志,是什么原因呢 ,日志内容如下

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3048a9cf] was not registered for synchronization because synchronization is not active
JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@2e49d3d1] will not be managed by Spring
==>  Preparing: select s.item_text from sys_dict_item s where s.dict_id = (select id from sys_dict where dict_code = ?) and s.item_value = ?
==> Parameters: person_size(String), 3(String)
<==    Columns: item_text
<==        Row: 100-500人
<==      Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3048a9cf]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2b378658] was not registered for synchronization because synchronization is not active
JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@2e49d3d1] will not be managed by Spring
==>  Preparing: insert into sys_log (id, log_type, log_content, method, operate_type, request_param, ip, userid, username, cost_time, create_time) values( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
==> Parameters: 1405343986421628930(String), 2(Integer), 往来客户信息-分页列表查询(String), org.jeecg.modules.demo.clientInfo.controller.ClientInfoController.queryPageList()(String), 1(Integer),   clientInfo: ClientInfo(id=null, createBy=null, createTime=null, updateBy=null, updateTime=null, sysOrgCode=null, type=null, code=null, name=null, property=null, primaryPerson=null, primaryPersonPhone=null, companySize=null, personSize=null, mainBusiness=null, industry=null, registeredCapital=null, url=null, address=null, salesPersonId=null, salesDepartmentId=null, servicePersonId=null, serviceDepartmentId=null)  pageNo: 1  pageSize: 10  req: org.apache.shiro.web.servlet.ShiroHttpServletRequest@3c23f253(String), 0:0:0:0:0:0:0:1(String), admin(String), 管理员(String), 89(Long), 2021-06-17 09:58:11.048(Timestamp)
<==    Updates: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2b378658]


总体概括下来,就是在不停的创建一个新的SqlSession
Creating a new SqlSession
然后有个异常
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2b378658] was not registered for synchronization because synchronization is not active
JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@2e49d3d1] will not be managed by Spring

最后在关闭这个SqlSession
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2b378658]

就不停的重复这个指令,把我给整吐了

有没有大佬可以帮帮我 谢谢了




您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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