摘要: 使用场景: public void doCustomer() { // People people = new People(); people.setName("哒"); people.setSex(1); people.setDrlType("people"); // KieServices k 阅读全文
posted @ 2020-12-16 00:00 艳阳下的小菜园 阅读(694) 评论(0) 推荐(0)
摘要: MongoDB分组统计: db.getCollection('promotion_record_info').aggregate([ {$match:{"step" :"BUMP_REFUSE"}}, {$group : { _id : "$failureCode" , total : {$sum 阅读全文
posted @ 2020-12-11 23:56 艳阳下的小菜园 阅读(397) 评论(0) 推荐(0)
摘要: 代码示例:https://github.com/741978260/mmc.git 一、引入jar <!--sleuth日志跟踪--><dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud- 阅读全文
posted @ 2020-09-19 23:08 艳阳下的小菜园 阅读(1082) 评论(0) 推荐(0)
摘要: 代码示例:https://github.com/741978260/delay-spring-boot-starter.git 一、简述 Spring Boot Actuator可以帮助你监控和管理Spring Boot应用,比如健康检查、审计、统计和HTTP追踪等。所有的这些特性可以通过JMX或者 阅读全文
posted @ 2020-05-24 17:10 艳阳下的小菜园 阅读(3445) 评论(0) 推荐(0)
摘要: 参见:https://www.runoob.com/docker/centos-docker-install.html 一、检查工作 1.Docker要求CentOS系统的内核版本高于 3.10 ,通过 uname -r 命令查看你当前的内核版本是否支持安账docker 2.更新yum包:yum u 阅读全文
posted @ 2020-05-18 00:43 艳阳下的小菜园 阅读(296) 评论(0) 推荐(0)
摘要: 一、Python解释器安装 官网下载python3.8, Step1:选择“Install Now”,并勾选下面的Add Python3.7 to PATH(此处是自动配置环境变量),之后默认安装完成 Step2: cmd 检查 python (查看环境变量配置情况) 二、PyCharm安装 官网下 阅读全文
posted @ 2020-05-10 00:09 艳阳下的小菜园 阅读(326) 评论(0) 推荐(0)
摘要: 描述: linux系统,以服务的方式启动jar,例如: systemctl restart xxx systemctl stop xxx systemctl status xxx 步骤: 1. cd etc/systemd/system2. 新增一个 服务名称.service文件 [Unit] De 阅读全文
posted @ 2020-01-19 11:21 艳阳下的小菜园 阅读(3776) 评论(0) 推荐(0)
摘要: 代码示例:https://github.com/741978260/delay-spring-boot-starter.git 1.banner.txt中字样生产器: http://patorjk.com/software/taag/#p=display&f=Standard&t=springboo 阅读全文
posted @ 2020-01-16 10:53 艳阳下的小菜园 阅读(262) 评论(0) 推荐(0)
摘要: 1.线程池的创建: ThreadPoolExecutor参数最全的构造方法: public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQue 阅读全文
posted @ 2019-12-12 11:13 艳阳下的小菜园 阅读(178) 评论(0) 推荐(0)
摘要: 场景: springboot单项目,自身使用mq中间件处理一些业务需求,某些业务上又需要消费第三方mq消息,这时候需要我们单项目中配置多套mq,这时候,需要我们自定义多套mq相关连接工厂、模板、监听工厂、管理等流程,具体实现,参见如下: 实现: 1.配置文件:application.yml spri 阅读全文
posted @ 2019-12-09 10:19 艳阳下的小菜园 阅读(2235) 评论(1) 推荐(0)