摘要: org.apache.ibatis.executor.SimpleExecutor org.apache.ibatis.executor.BaseExecutor org.apache.ibatis.transaction.jdbc.JdbcTransaction org.apache.ibatis 阅读全文
posted @ 2016-08-14 19:48 沧海一滴 阅读(1908) 评论(0) 推荐(0)
摘要: 1.1 获得当前日期+时间(date + time)函数:now() 除了 now() 函数能获得当前的日期时间外,MySQL 中还有下面的函数: current_timestamp() current_timestamp localtime() localtime localtimestamp() 阅读全文
posted @ 2016-08-14 14:20 沧海一滴 阅读(615) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { StopWatch stopWatch = new StopWatch("联系人"); stopWatch.start("t1"); stopWatch.stop(); stopWatch.start("t2"); s 阅读全文
posted @ 2016-08-14 12:36 沧海一滴 阅读(1890) 评论(0) 推荐(0)
摘要: http://wiki.apache.org/HttpComponents/FrequentlyAskedConnectionManagementQuestions 1. Connections in TIME_WAIT State After running your HTTP applicati 阅读全文
posted @ 2016-08-14 11:43 沧海一滴 阅读(1158) 评论(0) 推荐(0)
摘要: MyBatis 的配置文件包含了影响 MyBatis 行为甚深的设置(settings)和属性(properties)信息。文档的顶层结构如下: configuration 配置 properties 属性 settings 设置 typeAliases 类型命名 typeHandlers 类型处理 阅读全文
posted @ 2016-08-14 11:41 沧海一滴 阅读(7080) 评论(1) 推荐(0)
摘要: 先总结一个原则:mytatis的连接池最大值poolMaximumActiveConnections尽量跟服务器的并发访问量持平以至于大于并发访问量。 原因:在org.apache.ibatis.datasource.pooled.PooledDataSource中,popConnection函数( 阅读全文
posted @ 2016-08-14 10:24 沧海一滴 阅读(17506) 评论(2) 推荐(0)