会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lshan
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
41
42
43
44
45
46
47
48
49
···
87
下一页
2019年11月14日
MongoUtils mongo utils python
摘要: 如果是 pymongo==4.x pls pip3 install pymongo==4.5.0 client = pymongo.MongoClient(host="192.168.12.153", port=27017, username="root", password="root", aut
阅读全文
posted @ 2019-11-14 11:01 lshan
阅读(512)
评论(0)
推荐(0)
2019年11月13日
nginx 代理 mysql
摘要: 场景: 利用ngnix 代理mysql /ftp (所有的流式应用) config: cat /etc/nginx/nginx.conf #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/erro
阅读全文
posted @ 2019-11-13 23:31 lshan
阅读(1518)
评论(0)
推荐(0)
nginx 代理ftp
摘要: nginx1.9之后直接使用Stream配置就可以了,当然需要先安装stream模块 1.nginx 增加tcp ./configure --with-stream --with-pcre=../pcre-8.38 ./configure --with-stream --without-http_r
阅读全文
posted @ 2019-11-13 15:29 lshan
阅读(4071)
评论(0)
推荐(0)
2019年11月6日
pip 镜像加速
摘要: 方式1: 每次指定 目前用 pip 安装软件时有时候软件包的源位于境外,所以导致安装速度很慢,建议使用国内的一些镜像源进行安装: 阿里云:https://mirrors.aliyun.com/pypi/simple/豆瓣网:http://pypi.douban.com/simple/清华大学:htt
阅读全文
posted @ 2019-11-06 22:26 lshan
阅读(153)
评论(0)
推荐(0)
jenkins 构建项目snv(1)
该文被密码保护。
阅读全文
posted @ 2019-11-06 12:26 lshan
阅读(0)
评论(0)
推荐(0)
2019年11月4日
apollo 从配置中获取某个配置
摘要: package com.sea.comon.utils; import java.text.MessageFormat; import org.springframework.beans.factory.InitializingBean; import org.springframework.context.annotation.Configuration; import org.springfr
阅读全文
posted @ 2019-11-04 12:13 lshan
阅读(9172)
评论(2)
推荐(0)
spring data jpa 自定义转换器converter
摘要: 自定转换器: 使用: 在自定名字上添加 eg: XXXX.DO
阅读全文
posted @ 2019-11-04 11:28 lshan
阅读(4073)
评论(0)
推荐(0)
2019年11月2日
python3 搭建ftp 文件服务器 docker
该文被密码保护。
阅读全文
posted @ 2019-11-02 22:32 lshan
阅读(13)
评论(0)
推荐(0)
python http 把自己的电脑变成一个静态服务
摘要: 就可以运行起来静态服务。平时用它预览和下载文件太方便了。 在终端中输入命令: python2中 python3中
阅读全文
posted @ 2019-11-02 22:18 lshan
阅读(369)
评论(0)
推荐(0)
python 使用property取代getter和setter方法
摘要: 使用property取代getter和setter方法 @property成为属性函数,可以对属性赋值时做必要的检查,并保证代码的清晰短小,主要有2个作用 将方法转换为只读 重新实现一个属性的设置和读取方法,可做边界判定 运行结果
阅读全文
posted @ 2019-11-02 21:37 lshan
阅读(832)
评论(0)
推荐(0)
上一页
1
···
41
42
43
44
45
46
47
48
49
···
87
下一页