# by luffycity.comimport refrom urllib.request import urlopendef getPage(url): # 获取网页的字符串 response = urlopen(url) return response.read().decode('utf-8 ...
分类:
其他好文 时间:
2018-10-15 16:16:50
阅读次数:
173
yugabyte 集成图数据库JanusGraph,原理比较简单就是yugabyte 内置Cassandra,配置好JanusGraph 的访问就可以了。 使用docker 模式部署 创建yugabyte 集群(docker cli ) 下载部署工具 mkdir ~/yugabyte && cd ~ ...
分类:
其他好文 时间:
2018-10-15 16:14:49
阅读次数:
379
初学SSM+mybatis单元测试遇到的问题,dao注入后为nullDao层注入失败,查看后,发现注解都写的无误,经朋友的指点,在测试类上加了一句“@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations={“cl ...
分类:
其他好文 时间:
2018-10-15 14:54:24
阅读次数:
151
public static void loadProps(String propertiesUrl) { props = new Properties(); InputStream in = null; try { in =new BufferedInputStream(new FileInputS ...
分类:
编程语言 时间:
2018-10-15 14:52:13
阅读次数:
182
出现The import javax.servlet cannot be resolved 的解决方法 网上提供的方法是,在Eclipse中,右击项目,选择Build Path->configure build path->Libraries->Add External JARs,找到你计算机中to ...
分类:
编程语言 时间:
2018-10-15 14:49:46
阅读次数:
174
spring-boot-devtools 2.0热部署失效,1.5.13就没有问题 内部是什么原因呢,有空过去排查一下问题 ...
分类:
编程语言 时间:
2018-10-15 14:46:55
阅读次数:
119
MySQL之字符集 字符集介绍 gbk/gb2312 gbk/gb2312 采用双字节字符集,不论中、英文字符均使用双字符来表示,为了区分中文,将其最高位都设定成1 gb2312是gbk的子集,gbk是gb18030的子集,gb2312仅能存储简体中文字符 gbk包括中日韩字符的大字符集 通常使用g ...
分类:
数据库 时间:
2018-10-15 14:33:29
阅读次数:
162
1 #-*-coding:utf8-*- 2 import os 3 import subprocess 4 import time 5 6 #查找windows所有盘符名称 7 information = os.popen("wmic LOGICALDISK get name").read().s... ...
分类:
编程语言 时间:
2018-10-15 12:08:12
阅读次数:
219
刚开始打开vue项目的时候会发现vue代码报红,解决方式如下 首先安装Vetur和ESLint 打开文件》首选项》设置,配置如下代码 重新加载项目就行了 ...
分类:
其他好文 时间:
2018-10-15 11:54:15
阅读次数:
1401
例: Using overloaded methods public class MethodOverload { public static void main(String[] args) { System.out.println("The square of integer 7 is " + ...
分类:
编程语言 时间:
2018-10-15 11:49:40
阅读次数:
147