建立一个TCP客户端,首先我们需要创建一个“对象”然后通过这个对象来帮助我们来做发送消息等一系列的操作。详细如下代码: import socket target_host = "www.baidu.com" target_port = 80 #建立一个socket对象 client = socket ...
分类:
编程语言 时间:
2020-05-08 22:55:37
阅读次数:
72
hall服务使用restTemplate调用film服务。 我们现在需要定义额外的接口,这个接口要实现FeignClient,通过这种新式来调用哦我们的filmController 创建额外的模块 复制下groupId 各项配置 父工程里面 删掉几个不必要的配置 test直接删除 applicati ...
分类:
其他好文 时间:
2020-05-08 21:18:57
阅读次数:
90
python3.7连接oracle 本文示例使用 oracle-11.2.0.4.0版本 oracle-client准备部分 1.下载oracle client,下载地址 注意: 1.保证与oracle服务器版本统一 2.python3 ,oracle服务器,oracle client统一使用64位 ...
分类:
数据库 时间:
2020-05-08 19:55:53
阅读次数:
149
安装驱动 建议使用pg pool,但要同时安装pg与pg pool 编写模块 此处注意client.release的手动释放操作。因为options中如果不设置poolSize或max,pg pool默认会获得数据库10个连接的上限,源码截图如下: 而每次对数据库的操作都会消耗2个连接(原因未知)。 ...
分类:
Web程序 时间:
2020-05-08 18:18:31
阅读次数:
90
Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/eureka/ com.sun.jersey.api.client.ClientHandlerException: java.ne ...
分类:
其他好文 时间:
2020-05-08 16:05:19
阅读次数:
475
delete: 删除数据一、基本使用原始数据:1、删除一条数据(删除name等于白起的第一条数据)代码如下:# coding:utf8import pymongo as p# 链接数据库client = p.MongoClient("mongodb://localhost:27017")# 进入数据... ...
分类:
数据库 时间:
2020-05-08 13:11:36
阅读次数:
75
#coding=utf-8from win32com.client import gencachefrom win32com.client import constants, gencachedef createPdf(wordPath, pdfPath): """ word转pdf :param ...
分类:
编程语言 时间:
2020-05-07 19:42:19
阅读次数:
410
一、Linus下安装xclock测试图形界面 1)yum install xorg-x11-apps 2)打开xmanager-passive 打开后会自动隐藏到任务栏右下角 3)终端中操作 export DISPLAY=192.168.1.107:0.0 # IP为安装xmanager的主机 xc... ...
分类:
其他好文 时间:
2020-05-07 18:09:38
阅读次数:
85
<dependency> <groupId>com.taobao.txc</groupId> <artifactId>txc-client</artifactId> <version>${txc-version}</version> <scope>system</scope> <systemPath ...
分类:
编程语言 时间:
2020-05-07 15:33:42
阅读次数:
59
my.ini文件配置内容 [client] # 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] # 设置3306端口 port = 3306 # 设置mysql的安装目录 basedir=D:\mysql # 设置 mysql数据库的数据的存放 ...
分类:
数据库 时间:
2020-05-07 15:06:08
阅读次数:
62