摘要: 阅读全文
posted @ 2021-01-19 14:43 品书读茶 阅读(80) 评论(0) 推荐(0)
摘要: 1、是否支持定时任务 service crond status返回 is running 即可 2、crontab -e 编辑定时任务(每行一个定时任务) * * * * * + 执行的脚本(不是sh文件) 3、crontab -l 查看定时任务内容 阅读全文
posted @ 2020-07-01 14:11 品书读茶 阅读(106) 评论(0) 推荐(0)
摘要: 1、在某个字段后面追加固定的一段数据 mysql:公式:update table_name set field=CONCAT('str',field) where ..... 示例:update app_contract_ info set apply_type=CONCAT('123456',ap 阅读全文
posted @ 2019-04-01 17:37 品书读茶 阅读(931) 评论(0) 推荐(0)
摘要: windows版redis启动服务器命令:redis-server redis.windows.conf 图表来自菜鸟教程: 列表的操作命令 序号命令及描述 1 BLPOP key1 [key2 ] timeout 移出并获取列表的第一个元素, 如果列表没有元素会阻塞列表直到等待超时或发现可弹出元素 阅读全文
posted @ 2019-03-06 17:36 品书读茶 阅读(3730) 评论(0) 推荐(0)
摘要: 1、转发 方式一:使用 "forward" 关键字(不是指java关键字),注意:类的注解不能使用@RestController 要用@Controller @RequestMapping(value="/test/test01/{name}" , method = RequestMethod.GE 阅读全文
posted @ 2019-03-06 11:15 品书读茶 阅读(16989) 评论(0) 推荐(1)
摘要: org.springframework.cloud spring-cloud-dependencies Dalston.SR3 pom import dependencyManagement { imp... 阅读全文
posted @ 2019-03-05 09:09 品书读茶 阅读(1088) 评论(0) 推荐(1)
摘要: 启动 start nginx 强制停止 nginx.exe -s stop 重启 nginx.exe -s reload 阅读全文
posted @ 2019-03-04 17:44 品书读茶 阅读(413) 评论(0) 推荐(0)
摘要: 一、为什么选择使用rabbitmq作为消息中间件? 参考:https://blog.csdn.net/water_21215/article/details/80089663 二、为什么哈希表、完全平衡二叉树、B树、B+树都可以优化查询,为何Mysql独独喜欢B+树? 哈希表的特点:可以快速的精确查 阅读全文
posted @ 2019-02-25 13:44 品书读茶 阅读(195) 评论(0) 推荐(0)
摘要: 1、nginx作为静态资源服务器配置 强调 location 后的 "^~" 顺序不能反了 2、nginx作为反向代理服务器配置 proxy_redirect参数说明: 这个参数只在发生重定向时生效, 前提:proxy_redirect http://hello http://127.0.0.1:8 阅读全文
posted @ 2019-02-22 15:33 品书读茶 阅读(583) 评论(0) 推荐(0)
摘要: 可以利用logback MDC机制自定义实现日志链路追踪 环境: springboot + spring-cloud-starter-sleuth + logback logback.xml示例: <?xml version="1.0" encoding="UTF-8"?> <configurati 阅读全文
posted @ 2019-02-21 14:49 品书读茶 阅读(1211) 评论(0) 推荐(0)