mybatis 注意事项及错误统计

mybatis报错:

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.sephome.cosmosmodule.dao.CosmosTakeoutAddressDao.getAll

... ...

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6d4eee9a] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mchange.v2.c3p0.impl.NewProxyConnection@67b685ea] will not be managed by Spring

原因:mapper.xml文件没被扫描到

 

posted @ 2020-04-10 17:26  先天下  阅读(158)  评论(0)    收藏  举报