JDBC Connection [jdbc:mysql://127.0.0.1:3306/dreamcard?characterEncoding=utf-8, UserName=root@local

 异常:[12:34:47.404][DEBUG][org.mybatis.spring.SqlSessionUtils][http-nio-80-exec-1] Creating a new SqlSession
[12:34:47.480][DEBUG][org.mybatis.spring.SqlSessionUtils][http-nio-80-exec-1] SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6c57dfd4] was not registered for synchronization because synchronization is not active
[12:34:48.662][DEBUG][o.m.s.t.SpringManagedTransaction][http-nio-80-exec-1] JDBC Connection [jdbc:mysql://127.0.0.1:3306/dreamcard?characterEncoding=utf-8, UserName=root@localhost, MySQL-AB JDBC Driver] will not be managed by Spring

[12:34:48.702][DEBUG][org.mybatis.spring.SqlSessionUtils][http-nio-80-exec-1] Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6c57dfd4]

在网上查了下,大致原因是重复加载的问题。

修改方式:

在dispatcher-servlet中不扫描service注解:

    
        
        
    



你可能感兴趣的:(SpringMVC)