• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






雪夜杀机

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2021年8月18日

基于ReentrantLock通知唤醒的生产消费模式
摘要: 生产者消费者 import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.Conditio 阅读全文
posted @ 2021-08-18 14:15 光之星 阅读(59) 评论(0) 推荐(0)
 

2021年7月18日

spring 源码构建
摘要: git clone --branch v5.2.8.RELEASE https://gitee.com/Z201/spring-framework.git ##build.gradle 280 maven { url "https://maven.aliyun.com/nexus/content/g 阅读全文
posted @ 2021-07-18 16:00 光之星 阅读(44) 评论(0) 推荐(0)
 

2021年6月3日

读写分离、分库、分表
摘要: mysl主从复制 rpm -ivh http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql57-community-release-el7-10.noarch.rpm yum install mysql-community-se 阅读全文
posted @ 2021-06-03 13:33 光之星 阅读(54) 评论(0) 推荐(0)
 

2020年10月27日

python 反射的使用
摘要: import importlib DEFAULT_SETTINGS = { "packageNames": [ "framework.module.Interceptor", ] } class InterceptorChain(object): _interceptors = [] def __i 阅读全文
posted @ 2020-10-27 23:07 光之星 阅读(77) 评论(0) 推荐(0)
 

2020年8月22日

基础算法
摘要: 1.二分查找算法 根据数组起始索引 与 结束索引 求得 中间索引 ,比较查找目标与中间索引对应的元素 如果目标比中间索引对应元素大,则在数组以中间索引的右半边查找,如果没有查找到则之间返回-1 public static int search(List<Integer> list, Integer 阅读全文
posted @ 2020-08-22 17:45 光之星 阅读(83) 评论(0) 推荐(0)
 

2020年7月28日

git 命令使用
摘要: # 有两个分支master #切换并新建分支到login git checkout -b login # 提交login分支到本地仓库 git commit -m "提交信息" # 查看分支 git branch # 切换master分支 git checkout master # 查看分支 git 阅读全文
posted @ 2020-07-28 11:10 光之星 阅读(73) 评论(0) 推荐(0)
 

2020年7月27日

java设计模式应用
摘要: 1、builder设计模式(邮件工具类) public class EmailMessage { private Message message; private static final String FROM = "sender"; private static final String PAS 阅读全文
posted @ 2020-07-27 20:44 光之星 阅读(202) 评论(0) 推荐(0)
 

2020年6月16日

linux 中python的使用
摘要: 1.ipython的使用 # 安装 pip3 install ipython # 编辑 vim /etc/profile # 设置别名 -m IPython 起一个IPython服务 alias ipython='python3 -m IPython' # 刷新当前终端环境变量 source /et 阅读全文
posted @ 2020-06-16 09:53 光之星 阅读(242) 评论(0) 推荐(0)
 

2020年6月9日

linux命令
摘要: 后台执行py文件 nohup python3 -u flask_server.py > flask_log.log 2>&1 & 1. 带&的命令行,无论关闭终端都在后台运行。 2.-u是为了禁止缓存,让结果可以直接进入日志文件flask_log.log 3. 2>&1的意思 这个意思是把标准错误( 阅读全文
posted @ 2020-06-09 15:38 光之星 阅读(91) 评论(0) 推荐(0)
 

2020年6月6日

python orm之sqlalchemy
摘要: 基础操作 import sqlalchemy import threading import datetime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine f 阅读全文
posted @ 2020-06-06 19:46 光之星 阅读(201) 评论(0) 推荐(0)
 
下一页