self.driver = Chrome(CHROME_DRIVER) #初始化对象self.driver.set_window_size(1280, 1024) #设置窗口大小 self.driver.execute_script( 'localStorage.setItem("pre_appad ...
分类:
其他好文 时间:
2019-02-21 12:58:19
阅读次数:
203
import MySQLdb db = MySQLdb.connect("localhost","root","root","test",charset="utf8") cursor = db.cursor cursor.execute("select version()") data = curs ...
分类:
数据库 时间:
2019-02-18 14:47:09
阅读次数:
192
1、错误描述 type Exception report message Could not execute JDBC batch update; nested exception is org.hibernate.exception.ConstraintViolationException: Co ...
分类:
Web程序 时间:
2019-02-15 13:20:21
阅读次数:
111
启动springcloud服务中心,提示这个错误:Cannot execute request on any known server 网上一般说是修改application.properties配置文件,添加如下内容: 看了一下,我是有这些内容的。然后就各种折腾,后来把端口号从8080改成8088 ...
分类:
编程语言 时间:
2019-02-11 15:35:33
阅读次数:
893
在manage.py文件中 在execute_from_command_line函数中实现一系列操作: 在ManagementUtility对象的execute方法中: 在django.setup中调用apps.populate方法: ...
分类:
其他好文 时间:
2019-02-10 17:51:20
阅读次数:
418
本文主要是说明线程池的几个类的关系。因为有些东西经常搞混。至于线程池的流程,原理,作用等信息,以后想写的时候再追加吧。 1. 线程池相关的类 Executor: 只有一个execute(Runnable command)方法; ExecutorService: 对Executor接口进行了扩展,增加 ...
分类:
编程语言 时间:
2019-02-03 18:03:21
阅读次数:
195
用两种方式分别实现了,第一种是jdk原生的,代码稍微多点,第二种是基于httpclient4版本的。在我的机器上,访问同一个接口原生的性能要好很多(前者900ms,后者5.7s左右),httpclient主要性能消耗在"HttpResponse res = client.execute(post); ...
分类:
编程语言 时间:
2019-02-03 14:02:14
阅读次数:
155
(py27) [root@test SimpletourDevops]# python manage.py makemigrationsTraceback (most recent call last): File "manage.py", line 10, in <module> execute_ ...
分类:
移动开发 时间:
2019-02-01 16:27:23
阅读次数:
538
Hibernate知识: 1、核心配置文件: 连接数据库信息、连接池配置 映射配置 Struts2: 1、相关操作: 创建方式: 写一个类,写上public String execute();方法 实现Action接口 继承ActionSupport类 配置访问action中的多个方法: 使用通配符 ...
分类:
其他好文 时间:
2019-01-29 00:36:38
阅读次数:
226
一、背景 windows下用linux工具,但32位的却无法运行报错 二、解决办法 github上@Froosh给出了他的解决方案,通过安装qemu来运行32位的程序 具体步骤: Install qemu and binfmt 这一步实现了把程序的运行交由qemu user static来运行,从而 ...
分类:
Windows程序 时间:
2019-01-28 17:47:04
阅读次数:
2428