06 2020 档案

摘要:1 C:\Windows\System32\drivers\etc 阅读全文
posted @ 2020-06-30 14:05 明知山有小脑斧 阅读(161) 评论(0) 推荐(0) 编辑
摘要:1. 安装跨域包 windown 10 : 1 pip install django-cors-headers 2.把下载的包引入app中 1 INSTALLED_APPS = [ 2 ...... 3 'corsheaders' 4 ] 3. 添加中间件 1 MIDDLEWARE = [ 2 'd 阅读全文
posted @ 2020-06-30 11:21 明知山有小脑斧 阅读(161) 评论(0) 推荐(0) 编辑
摘要:问题 pycharm 单词拼写检查 会有绿色波浪线 解决: 阅读全文
posted @ 2020-06-27 21:24 明知山有小脑斧 阅读(1418) 评论(0) 推荐(0) 编辑
摘要:用pyCharm时,常会出现警告信息: function name should be lowercase --函数名应该是小写 字母 argument name should be lowercase --参数名应该是小写字母 variable in function should be lowe 阅读全文
posted @ 2020-06-27 20:52 明知山有小脑斧 阅读(10325) 评论(0) 推荐(0) 编辑
摘要:问题: 原因: id 是一个内置的函数。你取的变量名 ,最好不要用内置的函数名,ide友好提示,就是指的这个 解决: 在file-settings里搜索shadow, 把shadowing built-ins 后面对勾去掉,应用就好了 阅读全文
posted @ 2020-06-27 20:44 明知山有小脑斧 阅读(9705) 评论(0) 推荐(0) 编辑
摘要:1 python -m pip install --upgrade pip 阅读全文
posted @ 2020-06-24 22:22 明知山有小脑斧 阅读(302) 评论(0) 推荐(0) 编辑
摘要:1.ArrayList 1 List list = new ArrayList<Integer>(); 2 list.add(1); 3 list.add(2); 4 list.add(3); 5 // 创建一个迭代器 6 Iterator iter = list.iterator(); 7 // 阅读全文
posted @ 2020-06-24 16:40 明知山有小脑斧 阅读(532) 评论(0) 推荐(0) 编辑
摘要:1. 在pom.xml 添加redis依赖 1 <!-- redis --> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-starter-data-redis</arti 阅读全文
posted @ 2020-06-24 15:57 明知山有小脑斧 阅读(1601) 评论(0) 推荐(1) 编辑
摘要:使用@Autowired依赖注入的时候idea会报不建议字段注入的警告 取消这个警告的方法: 上图是没有使用idea汉化的界面 把 √ 取消 就不会出现这个警告了 阅读全文
posted @ 2020-06-24 15:06 明知山有小脑斧 阅读(5955) 评论(0) 推荐(0) 编辑
摘要:1. 显示系统相关信息 1 dmidecode -t system 2.显示内存相关信息 1 dmidecode -t memory 3.查看系统序列号 1 dmidecode -s system-serial-number 2 3 dmidecode -t system | grep 'Seria 阅读全文
posted @ 2020-06-24 09:29 明知山有小脑斧 阅读(117) 评论(0) 推荐(0) 编辑
摘要:1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程 daemonize no 2. 当Redis以守护进程方式运行时,Redis默认会把pid写入/var/run/redis.pid文件,可以通过pidfile指定 pidfile /var/run/redis 阅读全文
posted @ 2020-06-23 11:34 明知山有小脑斧 阅读(180) 评论(0) 推荐(0) 编辑
摘要:1 import java.sql.Timestamp; 2 import java.time.format.DateTimeFormatter; 3 import java.util.Calendar; 4 import java.util.Date; 5 6 /** 7 * 时间公共类 8 */ 阅读全文
posted @ 2020-06-23 10:45 明知山有小脑斧 阅读(328) 评论(0) 推荐(0) 编辑
摘要:python 内置首字母大写的方法title(),可以满足一般的需求 ,但是title()方法 会把除了首字母之外的字母变为小写 ,这时候就需要自定义首字母大写的方法了 1 # 首字母大写 2 def firstUp(title): 3 new_str = '{}{}'.format(title[0 阅读全文
posted @ 2020-06-23 10:11 明知山有小脑斧 阅读(2229) 评论(0) 推荐(0) 编辑
摘要:在settings.py 中配置: 1 LANGUAGE_CODE = 'zh-Hans' 2 3 TIME_ZONE = 'Asia/Shanghai' 4 5 USE_TZ = False 阅读全文
posted @ 2020-06-23 08:43 明知山有小脑斧 阅读(279) 评论(0) 推荐(0) 编辑
摘要:在settings.py 配置数据库连接 1 DATABASES = { 2 'default': { 3 'ENGINE': 'django.db.backends.mysql', 4 'NAME': 'django_db', 5 'USER': 'root', 6 'PASSWORD': 'ro 阅读全文
posted @ 2020-06-23 08:32 明知山有小脑斧 阅读(147) 评论(0) 推荐(0) 编辑
摘要:1 import xlrd 2 3 flbrd = "D:\\test.xlsx" 4 ws = xlrd.open_workbook(flbrd) 5 # 获取所有sheet名字:ws.sheet_names() 6 print('获取所有sheet名字',ws.sheet_names()) 7 阅读全文
posted @ 2020-06-22 14:17 明知山有小脑斧 阅读(582) 评论(0) 推荐(0) 编辑
摘要:maven更新jar包很慢可以试试使用阿里的国内镜像去更新jar包 找到你的maven配置的 settings.xml 配置文件 默认是在C:\Users\用户\.m\ 路径下 如果是自己安装的maven 仓库 :自己安装maven仓库\conf 目录下 替换以下内容: 1 <?xml versio 阅读全文
posted @ 2020-06-22 13:53 明知山有小脑斧 阅读(712) 评论(0) 推荐(0) 编辑
摘要:1 with open('testRead.txt', 'r', encoding='utf-8') as f: 2 for each_line in f: 3 Pass 4 with open('testWrite.txt', 'w', encoding='utf-8') as f: 5 f.wr 阅读全文
posted @ 2020-06-22 13:44 明知山有小脑斧 阅读(1149) 评论(0) 推荐(0) 编辑
摘要:批处理bai运行时闪一下就消失的情况一般有du两种情况 1.你的批处理运bat行完成的时间很快,但是你没有在运行完成后给添加暂停的命令 添加暂停命令 1 pause 2.你的批处理流程写的有问题。 阅读全文
posted @ 2020-06-22 10:55 明知山有小脑斧 阅读(2185) 评论(0) 推荐(0) 编辑
摘要:1 BigDecimal big = new BigDecimal("2.3513"); //设置BigDecimal初始值 2 big.setScale(1); // 保留1位小数,默认用四舍五入。 3 big.setScale(1, BigDecimal.ROUND_DOWN); // 直接删除 阅读全文
posted @ 2020-06-18 16:07 明知山有小脑斧 阅读(5974) 评论(0) 推荐(0) 编辑
摘要:右键 -> TortoiseSVN -> settings 点击Clear all 这样下次你再点svn的提交 或者更新代码 就需要你重新输入账号密码了 阅读全文
posted @ 2020-06-18 15:55 明知山有小脑斧 阅读(362) 评论(0) 推荐(0) 编辑
摘要:工具连接 链接:https://pan.baidu.com/s/13KJ2I2g7D55qx6-wTvU3GQ 提取码:zczm 切换路径到: C:\Users\Administrator\AppData\Roaming\Subversion\auth\svn.simple(具体看你svn.simp 阅读全文
posted @ 2020-06-18 15:49 明知山有小脑斧 阅读(503) 评论(0) 推荐(0) 编辑
摘要:1.在pom.xml文件添加依赖 1 <!-- 导出word --> 2 <dependency> 3 <groupId>cn.afterturn</groupId> 4 <artifactId>easypoi-base</artifactId> 5 <version>3.0.3</version> 阅读全文
posted @ 2020-06-18 14:09 明知山有小脑斧 阅读(9613) 评论(1) 推荐(0) 编辑
摘要:1 、 查看当天日期 select current_date(); 2、 查看当天时间 select current_time(); 3、查看当天时间日期 select current_timestamp(); 4、查询当天记录 select * from 表名 where to_days(时间字段 阅读全文
posted @ 2020-06-18 12:47 明知山有小脑斧 阅读(232) 评论(0) 推荐(0) 编辑
摘要:1 import java.lang.reflect.Field; 2 import java.lang.reflect.InvocationTargetException; 3 import java.lang.reflect.Method; 4 import java.lang.reflect. 阅读全文
posted @ 2020-06-18 11:39 明知山有小脑斧 阅读(2100) 评论(0) 推荐(0) 编辑
摘要:主要用到这两个包: import java.util.regex.Matcher;import java.util.regex.Pattern; Pattern类用于创建一个正则表达式,生成一个Pattern对象并且编译一个正则表达式,也可以说创建一个匹配模式, 它的构造方法是私有的,不可以直接创建 阅读全文
posted @ 2020-06-17 10:18 明知山有小脑斧 阅读(6300) 评论(3) 推荐(1) 编辑
摘要:问题: 原因:在springboot项目中IDEA对自动注入的误识别 解决:把Bean类的自动装配 取消选择 阅读全文
posted @ 2020-06-16 11:03 明知山有小脑斧 阅读(11802) 评论(0) 推荐(0) 编辑
摘要:1.@Api:用在请求的类上,表示对类的说明 1 tags:说明该类的作用,参数是个数组,可以填多个。 2 value="该参数没什么意义,在UI界面上不显示,所以不用配置" 3 description = "用户基本信息操作" 2.@ApiOperation():用于方法,表示一个http请求访问 阅读全文
posted @ 2020-06-15 13:27 明知山有小脑斧 阅读(355) 评论(0) 推荐(0) 编辑
摘要:在pom.xml文件添加 1 <!-- swagger --> 2 <dependency> 3 <groupId>io.springfox</groupId> 4 <artifactId>springfox-swagger2</artifactId> 5 <version>2.9.2</versi 阅读全文
posted @ 2020-06-11 14:13 明知山有小脑斧 阅读(354) 评论(0) 推荐(0) 编辑
摘要:import org.aspectj.lang.annotation.Aspect; import org.springframework.aop.Advisor; import org.springframework.aop.aspectj.AspectJExpressionPointcut; i 阅读全文
posted @ 2020-06-10 16:52 明知山有小脑斧 阅读(894) 评论(0) 推荐(0) 编辑
摘要:1 import com.google.zxing.BarcodeFormat; 2 import com.google.zxing.EncodeHintType; 3 import com.google.zxing.MultiFormatWriter; 4 import com.google.zx 阅读全文
posted @ 2020-06-10 15:08 明知山有小脑斧 阅读(1142) 评论(0) 推荐(0) 编辑
摘要:import org.springframework.beans.BeansException; import org.springframework.beans.FatalBeanException; import org.springframework.util.Assert; import j 阅读全文
posted @ 2020-06-10 14:54 明知山有小脑斧 阅读(2219) 评论(0) 推荐(0) 编辑
摘要:1.Linux 版本JDK下载地址 百度网盘下载地址:下载 提取码:cdh5 2.创建java安装文件路径(安装的应用习惯放到/usr/local 下) mkdir /usr/local/java 3.解压安装包命令 tar -zxvf jdk-8u251-linux-x64.tar.gz 4.配置 阅读全文
posted @ 2020-06-04 12:10 明知山有小脑斧 阅读(943) 评论(0) 推荐(1) 编辑
摘要:public String test(String inPath,String outPath) throws Exception { // 以GBK格式读取文件 FileInputStream fis = new FileInputStream(inPath); InputStreamReader 阅读全文
posted @ 2020-06-04 11:37 明知山有小脑斧 阅读(916) 评论(0) 推荐(0) 编辑
摘要:1 /** 2 * txt文档去空格 3 * @param url 4 */ 5 public void test(String url) { 6 try { 7 File srcFile = new File(url); 8 boolean b = srcFile.exists(); 9 //判断 阅读全文
posted @ 2020-06-04 11:33 明知山有小脑斧 编辑
摘要:Alibaba Java Coding Guidelines (2.0.2) 代码扫描规范 Chinese (Simplified) Language Pack EAP (201.6668.121) 汉化插件CodeGlance (1.5.4) 迷你缩放插件Codota (4.1.7) 代码提示类A 阅读全文
posted @ 2020-06-04 11:30 明知山有小脑斧 编辑
摘要:Ctrl 快捷键 介绍Ctrl + F 在当前文件进行文本查找 (必备)Ctrl + R 在当前文件进行文本替换 (必备)Ctrl + Z 撤销 (必备)Ctrl + Y 删除光标所在行 或 删除选中的行 (必备)Ctrl + X 剪切光标所在行 或 剪切选择内容Ctrl + C 复制光标所在行 或 阅读全文
posted @ 2020-06-04 11:27 明知山有小脑斧 编辑
摘要:1.创建一个名为extfonts的文件夹:将需要的所有字体放进去 2.将extfonts文件夹拷贝到fonts目录中 :fonts目录的路径为 /usr/share/fonts/ 3.extfonts文件夹拷贝到fonts文件夹以后,给extfonts文件夹赋最高权限,后刷新字体索引。输入命令: ( 阅读全文
posted @ 2020-06-04 11:24 明知山有小脑斧 编辑
摘要:cat /etc/redhat-release cat /etc/issue 阅读全文
posted @ 2020-06-04 11:21 明知山有小脑斧 编辑

点击右上角即可分享
微信分享提示