mybatis+spring JDBC Connection will not be managed by Spring

    刚刚发现日志打印出了JDBC Connection will not be managed by Spring,后来看了下,解决问题办法是,spring-context.xml里面不要扫描controller,spring-mvc.xml里面再扫描controller。

    spring-context.xml:

    


        
    

spring-mvc.xml:

 
        
    

你可能感兴趣的:(mybatis+spring JDBC Connection will not be managed by Spring)