随笔分类 -  MyBatis

MyBatis框架
摘要:1.报错如图所示 2.解决方案: <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context- 阅读全文
posted @ 2017-04-26 11:43 写最少的代码 阅读(2511) 评论(0) 推荐(0)
摘要:在Mybatis的应用中,Mybatis只提供了内存分页,并分页时需要把表单数据全部加载到内存中,实际Mybatis更希望开发者根据实际需要进行物理分页,当数据库为MySql数据库是,只要在SQL中实现分页即可: select * from user where id=#{id} limit #{o 阅读全文
posted @ 2017-04-09 11:02 写最少的代码 阅读(376) 评论(0) 推荐(0)