ydc
V2EX  ›  Java

连接 mysql 日志警告问题

  •  
  •   ydc · Jul 13, 2021 · 1919 views
    This topic created in 1908 days ago, the information mentioned may be changed or developed.
    我们项目每一条的 sql 执行日志以后都会有
    SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@12f36ee4] was not registered for synchronization because synchronization is not active
    JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@767980a7] will not be managed by Spring 这样一条日志, 一直排查不出来原因, 用的是 druid 链接池,mysql 数据库,目前确定的是数据库可以正常使用, 但是如果有一些异常会导致程序卡死, 有遇到过这类问题的大佬能说下解决方案嘛?
    1 replies  •  2021-07-15 10:01:16 +08:00
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   807 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 22:29 · PVG 06:29 · LAX 15:29 · JFK 18:29
    ♥ Do have faith in what you're doing.