import re import requests import random import time import os.path from bs4 import BeautifulSoup import pymysql user_agent_list = [ "Mozilla/5.0 (Wind ...
分类:
其他好文 时间:
2020-07-09 15:06:17
阅读次数:
72
ansible的帮助工具 [root@manager ~]# ansible-doc yum -s ansible-doc 模块名 ansible-doc 模块名 -s 列出该模块的所有选项 ansible-doc -l 列出所有模块 Group模块 - gid 设置组id = name 需要管理的 ...
分类:
其他好文 时间:
2020-07-09 12:18:22
阅读次数:
58
一、获取当前用户登录信息 UserDetail user = (UserDetail) subject.getPrincipal(); 二、不退出登录修改当前登录信息 //更新session登录信息UserDetail userDetail = (UserDetail) SecurityUtils. ...
分类:
其他好文 时间:
2020-07-09 11:56:29
阅读次数:
177
百翻查询才知道:MySql-Server 出于安全方面考虑默认只允许本机(localhost, 127.0.0.1)来连接访问. !!!所以必须给root修改可以远程访问的权限 1.在连接服务器后,操作mysql系统数据库 命令为: mysql -u root -p use mysql; 查询用户表 ...
分类:
数据库 时间:
2020-07-09 01:24:40
阅读次数:
96
Widget.h: #ifndef WIDGET_H #define WIDGET_H #include<QWidget> #include<QMouseEvent> class Widget : public QWidget { Q_OBJECT public: Widget(QWidget *p ...
分类:
其他好文 时间:
2020-07-09 01:18:01
阅读次数:
91
import requests from bs4 import BeautifulSoup # 实现有道在线翻译 trans_url = 'http://m.youdao.com/translate' headers = {'User-Agent': 'Mozilla/5.0 (Linux; And ...
分类:
其他好文 时间:
2020-07-08 22:57:00
阅读次数:
222
git config --global user.name "用户名" git config --global user.email "用户邮箱" 同时还可以设置让VSCode记住git账号和密码:git config --global credential.helper store git con ...
分类:
其他好文 时间:
2020-07-08 22:46:00
阅读次数:
269
laravel 关联模型 多态关系 一对一(多态) note 1个关联上从属于多个模型,如:博客post和用户user共享1个关联图片image。 1篇博客拥有1张主图 1个用户拥有1个头像 graph LR image(图片) image --> |imageable_id=post.id<br> ...
分类:
其他好文 时间:
2020-07-08 19:57:33
阅读次数:
52
mybatis之注解实现CRUD功能 步骤: 1、根据表创建pojo类 @Data @AllArgsConstructor @NoArgsConstructor public class User { private int uid; private String uname; private St ...
分类:
其他好文 时间:
2020-07-08 19:45:20
阅读次数:
54
场景:aws跟aliyun多个区域的服务器需要安装部署ilogtail 通过ansible-playbook去安装部署,由于服务器是内网才能ssh进去,所以分开多个区域去执行playbook 主机清单目录,里面hosts文件,由于不同区域的user_defind_id不同,即ilogtail的机器组 ...
分类:
其他好文 时间:
2020-07-08 19:45:02
阅读次数:
72