摘要: 一、activiti的监听器分为:全局监听、连线监听、节点监听。 1、节点监听 <userTask id="myTask" name="My Task" > <extensionElements> <activiti:taskListener event="create" class="org.ac 阅读全文
posted @ 2020-11-18 09:07 jentary 阅读(2354) 评论(0) 推荐(0) 编辑
摘要: 流程变量作用 1.用来传递业务参数 2.指定连线完成任务(同意、驳回) 3.动态指定任务的办理人 排他网关优势带默认值 × 并行网关(分支聚合) + 同时走任务 阅读全文
posted @ 2020-11-16 19:24 jentary 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: package com.example; import java.io.Reader; import java.io.StringReader; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Li 阅读全文
posted @ 2020-11-16 19:17 jentary 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 7大服务介绍 服务名称描述 RepositoryService Activiti 中每一个不同版本的业务流程的定义都需要使用一些定义文件,部署文件和支持数据 ( 例如 BPMN2.0 XML 文件,表单定义文件,流程定义图像文件等 ),这些文件都存储在 Activiti 内建的 Repository 阅读全文
posted @ 2020-11-16 11:48 jentary 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1.resources下(src/main/resources) InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("authfile.txt"); Properties prope 阅读全文
posted @ 2020-11-13 16:52 jentary 阅读(158) 评论(0) 推荐(0) 编辑
摘要: spring使用@Autowired为抽象父类注入依赖 有时候为了管理或者避免不一致性,希望具体服务统一继承抽象父类,同时使用@Autowired为抽象父类注入依赖。搜了了网上,有些解决方法实现实在不敢恭维,靠子类去注入依赖,那还有什么意义,如下: 父类: public abstract class 阅读全文
posted @ 2020-11-12 14:33 jentary 阅读(2123) 评论(0) 推荐(0) 编辑
摘要: 1.打包jar 以D盘下的tools_0808文件夹为例,打包的文件夹中必须存在MANIFEST.MF文件,存放的位置是 D:\tools_0808\META-INF\MANIFEST.MF。 dos命令如下: D:\>jar cvfm tools_0808.jar tools_0808\META- 阅读全文
posted @ 2020-11-04 08:41 jentary 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 2. 离线安装activiti-designer 虽然说可以在线安装,但是基本上在线安装不成功的。所以还是选择离线安装。 下载activiti-designer安装包,可以直接到官网下:https://www.activiti.org/designer/archived/ (国内好像访问不了) 这是 阅读全文
posted @ 2020-11-02 19:00 jentary 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 一、消息队列 放到本地事务最后一步 发送消息写到最后边 一直重试,知道成功为止 把方法分开 先发送消息,后调用本地事务 消息(事务消息) 不可消费 本地成功后再把消息改成可消费消息 本地事务失败把消息删掉 2PC 两阶段提交 二、AT-业务无侵入模式 第二个事务提交前等待下wait 1、首先拿到事务 阅读全文
posted @ 2020-10-27 14:32 jentary 阅读(125) 评论(0) 推荐(0) 编辑
摘要: org.springframework.beans.BeanUtils BeanUtils org.apache.commons.beanutils.BeanUtils.copyProperties(targetDemo, sourceDemo); 阅读全文
posted @ 2020-10-21 11:19 jentary 阅读(65) 评论(0) 推荐(0) 编辑
摘要: private static final ThreadLocal<Boolean> threadLocal = ThreadLocal.withInitial(() -> Boolean.FALSE); 阅读全文
posted @ 2020-10-20 13:02 jentary 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-10-16 19:09 jentary 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Executor executor = new ThreadPoolExecutor(Runtime.getRuntime().availableProcessors(), Runtime.getRuntime().availableProcessors() * 2, 5L, TimeUnit.SE 阅读全文
posted @ 2020-10-07 14:46 jentary 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 用lambda表达式实现map 一提到函数式编程,一提到lambda表达式,怎么能不提map。。。没错,java8肯定也是支持的。请看示例代码: @Test public void mapTest() { List<Double> cost = Arrays.asList(10.0, 20.0,30 阅读全文
posted @ 2020-10-07 13:47 jentary 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 一、Nginx同Apache一样都是一种WEB服务器。基于REST架构风格,以统一资源描述符(Uniform Resources Identifier)URI或者统一资源定位符(Uniform Resources Locator)URL作为沟通依据,通过HTTP协议提供各种网络服务。 Nginx使用 阅读全文
posted @ 2020-09-23 10:42 jentary 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1.删除文件:先删除本地缓存,重新加到缓存区,重新提交 git rm -r --cached . git add . git commit -m 'update .gitignore' git push origin master 2.初始化提交项目 Git 全局设置 git config --gl 阅读全文
posted @ 2020-09-08 10:23 jentary 阅读(151) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/free-wings/p/10254998.html 1.服务端(消息提供者) springboot amqp 默认非持久化 <parent> <groupId>org.springframework.boot</groupId> <artifactI 阅读全文
posted @ 2020-09-02 19:05 jentary 阅读(266) 评论(0) 推荐(0) 编辑
摘要: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2020-09-02 17:05 jentary 阅读(167) 评论(0) 推荐(0) 编辑
摘要: RabbitMQ 是一个在AMQP协议标准基础上完整的,可服用的企业消息系统。它遵循Mozilla Public License开源协议,采用 Erlang 实现的工业级的消息队列(MQ)服务器。 一、应用场景 异步处理 应用解耦 流量消峰 日志收集 二、支持多种语言 比如Js广告收集,大量的广告收 阅读全文
posted @ 2020-08-28 19:28 jentary 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 使用SpringBoot 默认的StandardServletMultipartResolver,不依赖commons-fileupload。 使用commons-fileupload的CommonsMultipartResolver, 排除默认 spring: autoconfigure: exc 阅读全文
posted @ 2020-08-24 13:14 jentary 阅读(229) 评论(0) 推荐(0) 编辑
摘要: react执行顺寻 constructor->componentWillMount->render->ComponentDidMount->render 一个React项目需要更新一个小组件时,很可能需要父组件更新自己的状态。而一个父组件的重新更新会造成它旗下所有的子组件重新执行render()方法 阅读全文
posted @ 2020-08-14 13:35 jentary 阅读(124) 评论(0) 推荐(0) 编辑
摘要: eclipse Ctrl+Shift+← 选中光标左边的单词 Ctrl+Shift+→ 选中光标右边的单词 Alt+Shift+L 阅读全文
posted @ 2020-07-29 17:47 jentary 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 在命令行使用属性时,是-D,比如:mvn -Dinput=test 引用官方的说明https://maven.apache.org/pom.html#Properties: Properties 属性是了解POM基础知识的最后一个要素。Maven属性是值占位符,如Ant中的属性。它们的值可以通过使用 阅读全文
posted @ 2020-07-29 08:18 jentary 阅读(548) 评论(0) 推荐(0) 编辑
摘要: cd existing_git_repo git remote add origin https://git.oschina.net/name/package.git git push -u origin master 阅读全文
posted @ 2020-07-21 19:11 jentary 阅读(96) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-07-18 09:43 jentary 阅读(167) 评论(0) 推荐(0) 编辑
摘要: let name = "aaa"; let age = 1; let add = function () { console.log('添加'); } // let obj = { // name: name, // age: age, // add: add // } let obj = { na 阅读全文
posted @ 2020-07-14 19:09 jentary 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1.命名导出 命名导出就是明确导出的变量名称和值。 在src目录下创建math.js,index.js文件。 math.js内容: // Case 1: export后面跟变量输出声明语句 export var PI = 3.14; // Case 2: export后面直接跟变量定义语句 expo 阅读全文
posted @ 2020-07-02 17:09 jentary 阅读(381) 评论(0) 推荐(0) 编辑
摘要: let node = { type : 'identifier', name : 'foo' }; let {type,name} = node; console.log(type);//'identifier' console.log(name);//'foo let node = { type 阅读全文
posted @ 2020-07-02 10:50 jentary 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 写的顺序:select ... from... where.... group by... having... order by.. limit [offset,] (rows) 从0开始取几条数据 执行顺序:from... where...group by... having.... select 阅读全文
posted @ 2020-06-29 09:06 jentary 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 一、SPI 简介: SPI 全称为 (Service Provider Interface) ,是JDK(1.5开始)内置的一种服务提供发现机制。 二、ServletContainerInitializer 阅读全文
posted @ 2020-06-28 18:00 jentary 阅读(111) 评论(0) 推荐(0) 编辑
摘要: idea 启动类有启动按钮,点击没反应问题 打开idea file-settings搜索插件找到Groovy这个然后把这个插件enable前面的对勾去掉即可。 idea 启动问题解决 Command line is too long. In order to reduce its length cl 阅读全文
posted @ 2020-06-24 12:33 jentary 阅读(628) 评论(0) 推荐(0) 编辑
摘要: Linux下安装解压版(tar.gz)MySQL5.7 最近尝试在Linux中安装了解压版MySQL,期间查阅了许多博客。很多博客看得我很懵逼,因此记录下自己的安装过程,方便后续查阅。 环境说明:CentOs7.2 一、清理老的mysql (1)卸载已有的mysql 查找以前是否装有mysql命令: 阅读全文
posted @ 2020-06-14 13:23 jentary 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 桥接 阅读全文
posted @ 2020-06-14 10:45 jentary 阅读(100) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/nilin99/article/details/78224785 https://www.cnblogs.com/laoqing/p/11927958.html https://www.toutiao.com/a6747212144963486220/ 这 阅读全文
posted @ 2020-06-12 20:56 jentary 阅读(823) 评论(0) 推荐(0) 编辑
摘要: 枚举 实现内部对象的多例 enum关键 相当于继承Enum抽象类 枚举中的构造方法不能是public 枚举对象放到第一行 枚举可以实现接口 枚举不可以继承其他类 /** * 常用类型(带参数的枚举常量,这个只是在书上不常见,实际使用还是很多的,看懂这个,使用就不是问题啦。) */ private e 阅读全文
posted @ 2020-06-03 16:05 jentary 阅读(187) 评论(0) 推荐(0) 编辑
摘要: http://localhost:8080/swagger-ui.html http://localhost:8080/demo/v2/api-docs import org.springframework.context.annotation.Bean; import org.springfram 阅读全文
posted @ 2020-05-31 21:28 jentary 阅读(330) 评论(0) 推荐(0) 编辑
摘要: log4j定义了8个级别的log(除去OFF和ALL,可以说分为6个级别),优先级从高到低依次为:OFF、FATAL、ERROR、WARN、INFO、DEBUG、TRACE、 ALL。 ALL:最低等级的,用于打开所有日志记录。 TRACE: designates finer-grained inf 阅读全文
posted @ 2020-05-30 20:48 jentary 阅读(690) 评论(0) 推荐(0) 编辑
摘要: lombok Lombok是一款通过注解在Java编译期生成代码的工具,通过使用其内置的一些注解如@Getter, @Setter等,可以在编译期间生成getter,setter,构造器,builder等代码 JSR 269在JDK6中被引入,作为APT的替代方案。javac执行的时候会调用Plug 阅读全文
posted @ 2020-05-30 20:32 jentary 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 箭头函数 基本用法 ES6允许使用“箭头”(=>)定义函数。 var f = v => v; 上面的箭头函数等同于: var f = function(v) { return v; }; 如果箭头函数不需要参数或需要多个参数,就使用一个圆括号代表参数部分。 var f = () => 5; // 等 阅读全文
posted @ 2020-04-28 17:00 jentary 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 解决github访问下载速度慢,vue官网访问速度慢。原创 My_Bells 最后发布于2019-01-31 11:07:32 阅读数 1643 收藏展开1.在浏览器中打开ping检测网站 http://ping.chinaz.com/2.输入github网站地址 github.com3.找出pin 阅读全文
posted @ 2020-04-28 14:58 jentary 阅读(244) 评论(0) 推荐(0) 编辑