摘要: IntelliJ IDEA 索引目录默认路径是 C:\Users\用户\.IntelliJIdea 转移步骤 1. 将 C:\Users\用户\.IntelliJIdea 索引目录剪切到要移动到的目录,如 D:/cahce/.IntelliJIdea 2. 找到IntelliJ IDEA安装目录中配 阅读全文
posted @ 2018-12-10 16:02 王不惑 阅读(2439) 评论(0) 推荐(0) 编辑
摘要: 1.生成随机字典 方法1 用集合方法 方法2 使用 map 和 reduce # map()将函数调用映射到每个序列的对应元素上并返回一个含有所有返回值的列表 # reduce函数对参数序列中元素进行累计计算 阅读全文
posted @ 2018-11-28 16:43 王不惑 阅读(687) 评论(0) 推荐(0) 编辑
摘要: 1.为元组中元素命名 方法1.定义常量 方法2.使用 namedtuple 2. 统计数组元素频次 方法1. 生成字典统计 方法2. 使用Counter 3.按字典值排序 方法1 使用元组 方法2 使用 sorted 的key 阅读全文
posted @ 2018-11-28 15:56 王不惑 阅读(715) 评论(0) 推荐(0) 编辑
摘要: 1. 从列表中过滤掉 负数 2.从字典中获取分数大于90 的人 3.能被3整除的集合 阅读全文
posted @ 2018-11-28 15:02 王不惑 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 1. 直接使用 2.使用 LoadBalancerClient 获取服务地址 3. 使用 @LoadBalanced 注解 阅读全文
posted @ 2018-11-20 16:35 王不惑 阅读(859) 评论(0) 推荐(0) 编辑
摘要: SpringCloud 的服务注册和发现是由Eureka来完成。 1.eureka server 1.1 依赖 1.2 @EnableEurekaServer 注册服务 1.3. 配置 2. eureka client 2.1 依赖 2.2 @EnableDiscoveryClient 2.3 配置 阅读全文
posted @ 2018-11-19 16:27 王不惑 阅读(136) 评论(0) 推荐(0) 编辑
摘要: update table1 set field1 = table2.field1, field2 = table2.field2 from table2 where table1.id = table2.id 阅读全文
posted @ 2018-11-16 10:27 王不惑 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 错误提示: 查看sql_mode: 重新设置值 阅读全文
posted @ 2018-11-16 09:39 王不惑 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : systemctl disable firewalld 开机启用 : 阅读全文
posted @ 2018-11-16 09:33 王不惑 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 在DailyRollingFileAppender中可以指定monthly(每月)、 weekly(每周)、daily(每天)、half-daily(每半天)、hourly(每小时)和minutely(每分钟)六个频度,这是通过为 DatePattern选项赋予不同的值来完成的。DatePatter 阅读全文
posted @ 2018-10-24 10:42 王不惑 阅读(2170) 评论(0) 推荐(0) 编辑