随笔分类 - MySQL
摘要:public class TestMP { private ApplicationContext ioc = new ClassPathXmlApplicationContext("applicationContext.xml"); private UserMapper userMapper = i
阅读全文
摘要:@Test public void getUser() { User user = userMapper.selectById(1); System.out.println("user:" + user); } A、userMapper的本质是org.apache.ibatis.binding.Ma
阅读全文
摘要:MySQL中的日志包括:错误日志、二进制日志、通用查询日志、慢查询日志等等。这里主要介绍下比较常用的两个功能:通用查询日志和慢查询日志。 1)通用查询日志:记录建立的客户端连接和执行的语句。2)慢查询日志:记录所有执行时间超过long_query_time秒的所有查询或者不使用索引的查询 (1)通用
阅读全文

浙公网安备 33010602011771号