2020.06.23 更新 1 概述 一个简单的web项目配合MySQL+Hibernate+Tomcat的简单示例demo,很容易在此基础上扩展成自己的项目. 2 创建工程 笔者IDE为IntelliJ IDEA,新建一个工程,选择Spring Initalizer: 下一步的话由于需要部署到服务 ...
分类:
数据库 时间:
2020-06-23 15:49:26
阅读次数:
73
一、多表单切换 当遇到frame/iframe表单嵌套页面时, WebDriver只能在一个页面上对元素识别与定位,对于frame/iframe表单 内嵌页面上的元素无法直接定位。这时就需要通过switch_to.frame()方法将当前定位的主体切换为frame/iframe表单的内嵌页面中。 s ...
分类:
编程语言 时间:
2020-06-23 15:48:57
阅读次数:
91
grep (Global search Regular Expression(RE) and Print out the line, 全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。 ...
分类:
系统相关 时间:
2020-06-23 13:18:34
阅读次数:
62
//distinct使用 public List<String> distinctDutyDate() { String hql="select distinct(dutyDate) from DoctorDuty"; Query query=getSession().createQuery(hql ...
分类:
Web程序 时间:
2020-06-23 12:55:01
阅读次数:
77
##实践1. 集成阿里巴巴p3c规范 0. 准备插件: 找到SonarQube版本对应的p3c插件 SonarQube7.6确认可用插件:https://github.com/caowenliang/sonar-pmd-p3c 下载插件代码并构建 >git clone https://github. ...
分类:
其他好文 时间:
2020-06-23 00:37:17
阅读次数:
90
Pyhton介绍 pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。 目前如果你在 python.org 下载最新版本的安装包,则是已经自带了该工具。 Python 2.7.9 + 或 Python 3.4+ 以上版本都自带 pip 工具。 pip ...
分类:
编程语言 时间:
2020-06-22 23:15:02
阅读次数:
83
最近做的项目,有个需求(从Elastic Search取数据,业务运算后),每次要向MySQL插入1300万数据左右。最初用MySQL的executemany()一次插入10000条数据,统计的时间如下: 如上,插入时间,由于系统的IO变化,会有波动,最快在4秒左右。 后改为"load data i ...
分类:
数据库 时间:
2020-06-22 21:00:39
阅读次数:
71
数据结构 #include <stdio.h> #include <stdlib.h> int search(int arr[],int len,int key) { int mid,low = 1; int high = len; //printf("%d!",high); while(low < ...
分类:
其他好文 时间:
2020-06-22 18:37:56
阅读次数:
79
这个函数我没试过 不知道好不好用 function htmltotxt($document){ $search = array('@<script[^>]*?>.*?</script>@si', // Strip out javascript '@<[\\/\\!]*?[^<>]*?>@si', / ...
分类:
Web程序 时间:
2020-06-22 15:44:24
阅读次数:
64
1、测试 openSession 使用openSession() 获取 session, 注释掉 session.close(), 访问测试 @Override public List<FactComsumption> getFactComsumptionList(Integer companyId ...
分类:
Web程序 时间:
2020-06-22 15:22:32
阅读次数:
48