MyBatis 用户表记录数查询
搭建MyBatis开发环境,实现用户表记录数查询 1、在MyEclipse中创建工程,导入MyBatis的jar包 aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkYAAAA6CAIAAADawAGoAAAVZ0lEQVR4nO1dXW/bxtL239If6D/Rpe97c25a1AIKRBAat8hFVSVO4BcoJCcqoZpR7dhJ7F5ISIwDpIZaoLBxjlW4ro9j65OiKOG9oEjO7swuSVmWKWUe6MKkdndm18t5OLOrnRVHxP7+vjMcOs5wNHJGI2c8Ho3HI8cZjsejWq1mmma1WnUYDAaDwUgeVqTrvb294dDGrDYejw4PD3u93vb29s7Ozn2oymAwGAyGDjKl7e7u2vaAZLVqtWqapsJRM9IraWNWSjWyqZVUtjGr5hZcDQaDcYdompnVwhG+f1Qgb88BTTOzmjGb96rDwkKmtJ2dHXtgvX7XqB2f1I9P68entd9O6senteOTN+9//6vZPD05uRNKa2RTKx6B6LnESK+sKIQ1sqmVCegCZF0jTVdiSvuU0TQzqxMAo3JUmNxzLY5wW7Q9fklkkqAJ1VUURcCKtG7TKq/rRdCaos4tARRV9+aOMSNKOypMO0biIGTM5kJQGpgV0n9RmGGqSeV9GXzltlI4csBM1cxWFWRKq1arA6u/X//gXtq2/fHXgm3bjuPs1z+47pppmqidW1JaI5tKpcIJxOW9dDpFCjPSfv1GFhVR1DXSTFsMhKOC/yAFFi+wNM5RYRXcXM0UCoJZbJqZyVVQEHyXMZvqiliEVJHUbTrlBblImUBsJnOHlHbHNjtURCIoTSEpsZSmnhXilFNMqglA94RJCceSmK1ayJRmmqbV722/fWdZVr/f/8f8+uKg8PHoJ8uytt++uyNKa2RTqWwjMrkQfKVoMrSuqhiD4QNykP9sSWZIbZVkSyddixV1IkiT6el2K+V1vXDrT2+uQ8CUplEgvg7zgmZWoM7oxt/r3lFBdMZgy3GniExplUql3+sVqwetVuv6+vrvylcX659dXl5eXV0VqwfuulqlUkHtQEoLAnliKM+/n8pmAX15tBJQWghnRaE0FcWKdRvZVC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pVIJtRNKaRMLh+yWa9koiiIoTS2TvqNlLxWlRWIHPaWRBCBCID7kknmtBrSgKKZGfEoLikdcS5uW0ui+JI7SZM4QnrPIa2khxIQojRKBK8bjsxDlSWWkvYiUyzkDRKa0KKs3oZQGt94pR5eitAgEIrYXKkU7CCSlJYPERGj+MZHmj9c9GGzG7QpXsSmtWCx2Wq0vHha+eVIUPhulL7997P5krVgsonbCKc1pZFOpdDoVXGaFRRRHDKhBs6cLPPpRsKznVeBFuxiUJgc/A2dIFKQNPEZhHsqBbGRTwgDA4VIVkwYE6yQHALGvhAhYuclEVpAKPKIh9UWEdDlRlKaMqQQrO5olsWDDIx2HodtUiiDKaO1bZOVD19I8zNlLC4witUfzqOCb+8ANMMU4KrCR9H9NKiAyOQ76YelER3CUlFYjdBDowGOoDvNBIBx4V+RNWCfSjkfaq7ull5bP59utVqfV6rbb3U6n1+30u91+r2f1+wPLsgeWbQ/y+TxqJwKloSUptM0AbcII3R4SRK/IDSbi9pBIlKbYhYEETW6Ebw+hx13yTiZ9FjbYS8ylKiYCRyLJ7SW+opDwiMGklE6jf1tcSqP7kiRKk+M8gokSXzjlt1G4ciKUlDcn0hUJEVJFlW5TKB/YYYUyoMl5rKV5AUUFMSHdUI/8G/D3CJObXjAMFWiamdVCAe0OgfaWlA4GR6WWLGV6SgvRYa7wJxg5LamJEoHSvCa87SSqyRib0nK5XPvmpt268VitLbJa3x5YuVwucu8FRNhiPnXpRUOSDPic8Al2GWBqVkhozInBuA/EprS1tbXW9bXPah2K1dbW1qbRJa5FW2pKU+9IXFp8gl0GYEZjMGaA2JT2eTTE1QNu7I9RZykt4CQ2+Cn5K59glxkMxh0gNqUxGAwGg5FMhFLa/wMZCOc8NWMCoAAAAABJRU5ErkJggg==" alt="" /> 2、创建MyBatis配置文件mybatis-config.xml配置数据库信息
mybatis-config.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd"> <!-- 通过这个配置文件完成mybatis与数据库的连接 -->
<configuration>
<!-- 引入 jdbc.properties 文件-->
<properties resource="jdbc.properties"/><typeAliases></typeAliases> <environments default="development">
<environment id="development">
<!--配置事务管理,采用JDBC的事务管理 -->
<transactionManager type="JDBC"></transactionManager>
<!-- POOLED:mybatis自带的数据源,JNDI:基于tomcat的数据源 -->
<dataSource type="POOLED">
<property name="driver" value="${driver}"/>
<property name="url" value="${url}"/>
<property name="username" value="${username}"/>
<property name="password" value="${password}"/>
</dataSource>
</environment>
</environments> <!-- 将mapper文件加入到配置文件中 将来mapper文件很多所以是mappers -->
<mappers>
<mapper resource="cn/bdqn/dao/UserMapper.xml"/>
</mappers>
</configuration>
jdcb.properties文件(com.mysql.jdbc.Driver 一定要大写)
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/testdb
username=root
password=bdqn
mybatis-config.xml的头文件:去dbf的文件开始位置找
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
a、复制mybatis-3.2.2\org\apache\ibatis\builder\xml下的2个文件(如下)放到你想要的地方(我直接放工程里去)
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkcAAAArCAIAAAD9iLuoAAAL3ElEQVR4nO2dvXLyOBSGuS1fkMtcwN4AdB5ugOEGoGA8zHicZLJNmjS07r5t2DrhxxhsmC38dyQdSTax+Tb+3qcKRpZkwHp8jhVrlAEAAABDYaRu+ttIkiSP7yUAAADQBN5qWZpmWXq9Ztdrdrtdb7drlqW32/Xj4yMMw6/d1+M7CgAAAFhhrPb29pamF1Vst9v1/f09juPn5+fPz8/H9xUAAAAww1jt9fX1cjmzYgvDMAiCIAjCMOyi9chzRq5/336OF3XRhW6IPGc0Go1c796O+a59vyZlAAAy22DyNN9o3tzMJ8GWvtQXBT8DxmovLy+Xc3K5nNPLJUsvktj+3W7/+fXrR1nNd0c59zTVtD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YV+c0qndYzHMgbb0upcX/5wNitZ4xG0maA8nnGL4fq81ms/1uJ4jteDyJYpvNZsp+jfJ44u2fyHNGrqvOq6izfY7ryhNDxHCPnZVBaTCdxNpztj+mznPbDVNOaAFy77FKVXqSVsW7gEoZ0AHy9TuVjjRIyrERme8vltSnygT3KBMajOED3zpf81M5gUSt095QT4j9t8+RsZYX9qSfSP5SvhSB1XrFdrGkJPXZ32O7r4Sx2nQ63X997Xdfpdj2othOl3MynU7btFIzoDyZbqbKt/8DAQyUJmmUx87UGCqF+dixsHivilphtcHBWG08Hu8+PyuxHTixjcfje1ob1IAPq4FWQGoAPALGan81o21LdM78IIDVAADgfwdWDQUAADAcYDUAAADDAVYDAAAwHGA1AAAAwwFWAwAAMBz+AxKkN4GFzcJ6AAAAAElFTkSuQmCC" alt="" />
b、然后在window-->prefenence-->xml-->xml catalog-->add-->config.dtd这个文件,然后key写-//mybatis.org//DTD Config 3.0//EN-->确认后就可以正常使用这个文件了 3、编写实体类User
package cn.bdqn.pojo; public class User {
private Integer id;
private String username;
private String userCode;
private String userPassword;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getUserCode() {
return userCode;
}
public void setUserCode(String userCode) {
this.userCode = userCode;
}
public String getUserPassword() {
return userPassword;
}
public void setUserPassword(String userPassword) {
this.userPassword = userPassword;
} }
测试类:
public class UserTest { private Logger logger = Logger.getLogger(UserTest.class); @Test
public void countTest() {
String resource = "mybatis-config.xml";
int count = 0;
SqlSession sqlSession = null;
try {
//1、读取配置文件(mybatis-config.xml)的输入流
//引入包,是ibatis的包
InputStream is = Resources.getResourceAsStream(resource);
System.out.println("is======"+is);
//2、创建sqlSessionFactory对象,完成对配置文件的读取(application作用域,创建完就没必要销毁)--一个就够了(单例)
SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(is);
System.out.println("factory======"+factory);
//3、创建sqlSession对象(request作用域,用完后要关闭)
sqlSession = factory.openSession();
System.out.println("sqlSession====="+sqlSession);
System.out.println( sqlSession.selectOne("cn.bdqn.dao.UserMapper.count"));
//4、调用mapper文件进行数据操作(调用之前必须要把mapper文件加入到mybatis-config.xml)
count = sqlSession.selectOne("cn.bdqn.dao.UserMapper.count");
System.out.println("count===="+count);
//打日志用log4j.properties
logger.debug("countTest--->"+count);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
sqlSession.close();
}
Assert.assertEquals(6, count); }
4、配置映射文件UserMapper.xml
a、头文件 :搜索:sqlsession就可以找到探索映射sql语句下的头文件
b、然后在window-->prefenence-->xml-->xml catalog-->add-->mapper.dtd这个文件,然后key写-//mybatis.org//DTD Mapper 3.0//EN-->确认后就可以正常使用这个文件了
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 如果我要调用mapper文件,就去拿到namespace+id(方法名)的名字就可以访问 -->
<mapper namespace="cn.bdqn.dao.UserMapper">
<!-- id要唯一的,一般是下拉类的方法名 -->
<!-- 返回的是什么类型int -->
<select id="count" resultType="int">
select count(1) from user
</select>
<!-- 增加 -->
<!-- <insert id=""></insert> -->
</mapper>
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUkAAAHhCAIAAABsp9t8AAAgAElEQVR4nO2df3AUx4Hv55/U/flcr3KV471KOZc4FTuuOxLFUuyNA65XdQZy9Y7EOVKQZxDG9tgEpwzKD+MzfsIywuJHwhwILOdsSfYZED+ECbHXkNgleASQMAaBIVbYA0kIbP1avEhIO6sl6ffH7M52z3TP7C/tbre+n+qidnqne2ZtfbZ7Zre/q0UAACqiFfsEAACTAtwGQE20ZgCAimgEAKAicBsANcmn293dbdVNTTOb2qqbmrq72/LYMwAgU/Lmdnd328y2tsq2tsOHDzc3vzmzqQ16A1BEsnf7bOuzdiGEVLe1VTa1NbU1tXVXt7U1VVa3V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tqYODbdBlijr9g9bTv5gR8fWkycvDV9b8tN1D+tr5i+pnr/4+fmPVC94tGbB43XzHjcWPFpjF0fz1Cgc1AOBgCVbUm1K/NSO/mlqiWaONwi7a7s1fWy4DbJFWbff/fCDh1o+mHf6ZEf46iPL1nYRYpXzhJwh5DQhZwk5nyxut23BgnrACAX1gBEiISOQVJslYITSS1yyWtrvC/R7BPcx3AbZo6zbF07tmtvy4Y/2nDp55erin9ReJETT/rumfX737/4YJeQmIaOEWGbObzjIcTthMmV10HAM36794TYoIZR1mxDy9p51P2g909F1bfFPam0VNe1vo4TcIOQzQjRNI4RomvbDx//d3TxkBAKB1ITbnpk7JtxB3TNNLfWTQwllXRXJbuA2yCsqu00IeeetDSc+/GTx0jV/JkTT/lbT/qem/Y8YIWOE3KTcXvBEHacxbStlpP0Ue89MkKaWbBjU7QHb7hdug0lEcbcJISOf/Vflky/+KbmpadP+mnqccPvhJ2uLcm4ATB6aCQBQEe0yj0tJent7jx49un379vr6+vr6+q0U7hogF/Us27dvP3r0aC9Qhf8PGeD+WlKYZJ0AAAAASUVORK5CYII=" alt="" />
MyBatis 用户表记录数查询的更多相关文章
- Atitit.mssql 数据库表记录数and 表体积大小统计
Atitit.mssql 数据库表记录数and 表体积大小统计 1. EXEC sp_MSforeachtable "EXECUTE sp_spaceused '?'&quo ...
- 【Mybatis】MyBatis之表的关联查询(五)
本章介绍Mybatis之表的关联查询 一对一关联 查询员工信息以及员工的部门信息 1.准备表employee员工表,department部门表 CREATE TABLE `employee` ( `i ...
- Dynamics 365 POA表记录的查询
微软动态CRM专家罗勇 ,回复313或者20190311可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me!我的网站是 www.luoyong.me . PrincipalO ...
- MYSQL-SQLSERVER获取某个数据库的表记录数
MYSQL: 1,可以使用MYSQL的系统表的记录数(亲测,有时候,会不准确,被坑了一把,如果还是想通过此方式实现查询表记录数,可以按照文章后的链接进行操作) use information_sche ...
- navicat查看mysql数据表记录数不断变化
在使用navicat进行数据库管理的时候,在查看表对象的时候会发现,每次刷新,数据表的记录数不断变化,尤其是大表. 对于100万的数据经常会显示九十几万,当然通过count(*)出来的数据是正确的. ...
- 查找 SQL SERVER 所有表记录数
-- 所有表的记录数 SELECT a.name, b.rowsFROM sysobjects AS a INNER JOIN sysindexes AS b ON a.id = b.idWHERE ...
- 统计mysql某个数据库的表数量以及表记录数
统计MySQL中某个数据库中有多少张表 SELECT count(*) TABLES, table_schema FROM information_schema.TABLES where ...
- oracle存储过程统计用户各表记录数
declare v_tName varchar(50); v_sqlanalyze varchar(500); v_num number; v_sql varchar(500); cursor c1 ...
- Sql Server 查询库表记录数
), RowCnt INT) EXEC sp_MSforeachtable 'INSERT INTO #temp SELECT ''?'', COUNT(*) FROM ?' desc DROP TA ...
随机推荐
- C#报错:创建调试信息文件 ……obj\Debug\model.pdb: 拒绝访问
错误:创建调试信息文件“.......\obj\Debug\model.pdb”时发生错误 --“......\obj\Debug\model.pdb: 拒绝访问. 解决办法如下: 删除该项目下的 b ...
- JS案例之8——从一个数组中随机取数
近期项目中遇到一个需求,从一个列表中随机展示列表的部分内容,需求不大,JS也非常容易实现.主要是运用到了Math对象的random方法,和Array的splice方法. 思路是先新建一个数组,存放所有 ...
- [CareerCup] 11.2 Sort Anagrams Array 异位词数组排序
11.2 Write a method to sort an array of strings so that all the anagrams are next to each other. 这道题 ...
- Solr(5.1.0) 与Tomcat 从0开始安装与配置
1.什么是Solr? Solr是一个基于Lucene的Java搜索引擎服务器.Solr 提供了层面搜索.命中醒目显示并且支持多种输出格式(包括 XML/XSLT 和 JSON 格式).它易于安装和配置 ...
- iOS中偏好设置的创建,数据写入与读取
NSUserDefaults与NSDictinary? 应用通过NSUserDefaults用键值对的方式来读取和保存偏好设置数据,与通过键从NSDictionary对象中获取数据一样,不同之处在于N ...
- 利用mstsc远程桌面传送文件,记录一下
尼玛之前服务器上传有点异常,在服务器装了一个上传下载监控的软件,用的是什么 绿色版QQ流量监控,绿色是挺绿色的,装了就等哭吧.没时间打字反正就是删除不了,后来想办法删除了.艹.所有服务除了系统服务能上 ...
- EF实体框架之CodeFirst五
上一博客学习了下基本的约定配置,留下几个遗漏的,这篇就是学习下遗漏一复杂类型. 一.什么是复杂类型? 书中说道:“复杂类型也可视作值类型(?)可以作为附加属性添加到其他类.复杂类型与实体类型的区别在于 ...
- C#爬页面总结
错误的思路是这样的:发送一个访问页面的请求过去,得到一个html页面,然后我要的数据全都在这上面.后来发现不是这样的,也猜到可能是页面加载之后还有js代码的ajax的异步加载,那么问题来了?我是不是要 ...
- Orchard内置特性(以模块来说的)
本文链接:http://www.cnblogs.com/souther/p/4539169.html 主目录 Orchard中有很多可以直接和多次使用的特性,这些东西在官方的Gallery中可以找到. ...
- 序列化和反序列化的几种方式(JavaScriptSerializer 、XmlSerializer、DataContractSerializer)(一)
JavaScriptSerializer 类 为启用 AJAX 的应用程序提供序列化和反序列化功能. 命名空间: System.Web.Script.Serialization 程序集: Sys ...