1. 打开idea,”file“ -> "new" -> "module" -> "spring initilizer" ····->"web" ->"spring web" 2. 搭建依赖 修改pom.xml 配置文件,加入依赖项。 <dependency> <groupId>org.spring ...
分类:
编程语言 时间:
2020-09-24 00:04:18
阅读次数:
40
Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha ...
分类:
其他好文 时间:
2020-09-24 00:03:11
阅读次数:
34
首先创建 itemSpider 在spiders 里面创建 item_spider.py 输入 """ 语言版本: python:3.6.1 scrapy:1.3.3 """ import scrapy import re class itemSpider(scrapy.Spider): name ...
分类:
移动开发 时间:
2020-09-23 23:57:23
阅读次数:
70
1.需要安装redis/rediscluster #!/usr/bin/env python3.7.4 # -*- coding:utf-8 -*- # # File: rds2rdsCluster.py # Project: 将单点redis的数据迁移到cluster # Author: Aven ...
分类:
其他好文 时间:
2020-09-23 23:56:52
阅读次数:
56
#全局查询日志(测试环境化使用) ##配置启用 #my.cnf中 #开启 general_log=1 #记录日志文件的路径 general_log_file=/path/logfile #输出格式 log_output=FILE ##编码启用 set global general_log = 1; ...
分类:
数据库 时间:
2020-09-23 23:23:26
阅读次数:
64
Nginx用户认证配置用户认证:以bbs.jinkai.cc.conf为例vim/etc/nginx/conf.d/bbs.jinkai.cc.conf添加location~admin.php{auth_basic"Auth";auth_basic_user_file/etc/nginx/user_passwd;fastcgi_pass127.0.0.1:9000;fastcg
分类:
其他好文 时间:
2020-09-23 23:12:54
阅读次数:
38
使用django_damin后台时,数据库没有自动生成django_admin_log,需要单独迁移文件admin应用pythonmanage.pymakemigrationsadminpythonmanage.pymigrateadmin报错如下:err.raise_mysql_exception(self._data)File"/usr/local/python36/lib/python3.6
分类:
其他好文 时间:
2020-09-21 12:14:22
阅读次数:
56
1、作为一种防止宏错误展开的一种防御性写法。 相信很多人都知道,这里不展开了。 2、实现 goto 语句的功能,一次break就可以跳出到后续语句。 do { if(...) break; ... }while(0) // 后续语句 例如: // https://gitee.com/openharm ...
分类:
其他好文 时间:
2020-09-21 12:06:28
阅读次数:
44
一、emmet安装方法: 步骤一:首先你需要为sublime text安装Package Control组件: 按Ctrl+`调出sublime text的console 粘贴以下代码到底部命令行并回车: import urllib2,os;pf='Package Control.sublime-p ...
分类:
Web程序 时间:
2020-09-21 11:36:58
阅读次数:
67
1.下载TortoiseSVN 安装 选择安装地址,点开command line client tools选中第二条。 安装完成后,桌面右击鼠标,出现这两个功能说明安装成功。 2.打开idea - File - Settings - Version Control - Subversion 选择sv ...
分类:
其他好文 时间:
2020-09-21 11:35:01
阅读次数:
47