精简jar包

This commit is contained in:
jinqiming 2021-02-24 16:39:06 +08:00
parent 671d77e17e
commit db773a5170
6 changed files with 21 additions and 71 deletions

18
pom.xml
View File

@ -8,11 +8,11 @@
<version>4.3.1</version>
<name>snow</name>
<url>http://www.ruoyi.vip</url>
<url>http://snowblog.shop.csj361.com</url>
<description>snow管理系统</description>
<properties>
<ruoyi.version>4.3.1</ruoyi.version>
<snow.version>4.3.1</snow.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
@ -171,49 +171,49 @@
<dependency>
<groupId>com.snow</groupId>
<artifactId>snow-quartz</artifactId>
<version>${ruoyi.version}</version>
<version>${snow.version}</version>
</dependency>
<!-- 代码生成-->
<dependency>
<groupId>com.snow</groupId>
<artifactId>snow-generator</artifactId>
<version>${ruoyi.version}</version>
<version>${snow.version}</version>
</dependency>
<!-- 核心模块-->
<dependency>
<groupId>com.snow</groupId>
<artifactId>snow-framework</artifactId>
<version>${ruoyi.version}</version>
<version>${snow.version}</version>
</dependency>
<!-- 系统模块-->
<dependency>
<groupId>com.snow</groupId>
<artifactId>snow-system</artifactId>
<version>${ruoyi.version}</version>
<version>${snow.version}</version>
</dependency>
<!-- 通用工具-->
<dependency>
<groupId>com.snow</groupId>
<artifactId>snow-common</artifactId>
<version>${ruoyi.version}</version>
<version>${snow.version}</version>
</dependency>
<!--钉钉模块-->
<dependency>
<groupId>com.snow</groupId>
<artifactId>snow-dingtalk</artifactId>
<version>${ruoyi.version}</version>
<version>${snow.version}</version>
</dependency>
<!--工作流模块-->
<dependency>
<groupId>com.snow</groupId>
<artifactId>snow-flowable</artifactId>
<version>${ruoyi.version}</version>
<version>${snow.version}</version>
</dependency>
</dependencies>

View File

@ -5,7 +5,7 @@ snow:
# 版本
version: 4.3.1
# 版权年份
copyrightYear: 2020
copyrightYear: 2021
# 实例演示开关
demoEnabled: true
# 文件路径 示例( Windows配置D:/snow/uploadPathLinux配置 /home/snow/uploadPath
@ -147,6 +147,8 @@ flowable:
idm-admin:
user: admin
password: test
db-history-used: true
history-level: full
#上传文件的方式
sys:
file:

View File

@ -21,28 +21,27 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.38</version>
</dependency>
<dependency>
<!-- <dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
</dependency>-->
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-spring-boot-starter</artifactId>
<version>6.4.1</version>
<version>6.4.0</version>
</dependency>
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-ui-modeler-rest</artifactId>
<version>6.4.1</version>
<version>6.4.0</version>
</dependency>
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-json-converter</artifactId>
<version>6.4.1</version>
<version>6.4.0</version>
</dependency>
</dependencies>
</project>

View File

@ -37,58 +37,4 @@ public class FlowIdGenerator implements IdGenerator {
long id = snowflake.nextId();
return String.valueOf(id);
}
//很多时候我们需要简单模拟N个线程调用某个业务测试其并发状况于是Hutool提供了一个简单的并发测试类ConcurrencyTester
public static void main(String[] args) {
RSA rsa = new RSA();
//获得私钥
PrivateKey privateKey = rsa.getPrivateKey();
//获得公钥
PublicKey publicKey = rsa.getPublicKey();
Console.log("privateKey{}",privateKey.getEncoded());
Console.log("publicKey{}",publicKey.getEncoded());
/* Word07Writer writer = new Word07Writer();
// 添加段落标题
writer.addText(new Font("方正小标宋简体", Font.PLAIN, 22), "我是第一部分", "我是第二部分");
// 添加段落正文
writer.addText(new Font("宋体", Font.PLAIN, 22), "我是正文第一部分", "我是正文第二部分");
// 写出到文件
writer.flush(FileUtil.file("d:/wordWrite.docx"));
// 关闭
writer.close();
*/
/* ThreadPoolExecutor executor = ExecutorBuilder.create().
setCorePoolSize(5).
setMaxPoolSize(10).
setWorkQueue(new LinkedBlockingQueue<>(100))
.build();
executor.execute(new Runnable() {
@Override
public void run() {
for (int i = 0; i < 10000; i++) {
Snowflake snowflake = IdUtil.getSnowflake(2, 1);
long id = snowflake.nextId();
ThreadUtil.sleep(1000);
Console.log("{} test finished, delay: {}", Thread.currentThread().getName(), id);
}
}
});
executor.shutdown();*/
/* ConcurrencyTester tester = ThreadUtil.concurrencyTest(100, () -> {
// 测试的逻辑内容
Snowflake snowflake = IdUtil.getSnowflake(2, 1);
long id = snowflake.nextId();
// ThreadUtil.sleep(1);
Console.log("{} test finished, delay: {}", Thread.currentThread().getName(), id);
});
// 获取总的执行时间单位毫秒
Console.log(tester.getInterval());*/
}
}

View File

@ -5,6 +5,7 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.event.support.TypedEventListener;
import org.flowable.common.engine.api.delegate.event.FlowableEventListener;
import org.flowable.common.engine.impl.EngineDeployer;
import org.flowable.common.engine.impl.history.HistoryLevel;
import org.flowable.engine.impl.rules.RulesDeployer;
import org.flowable.spring.SpringProcessEngineConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
@ -40,6 +41,8 @@ public class FlowableConfig {
configuration.setAsyncExecutorActivate(true);
//开启历史数据异步保存
configuration.setAsyncHistoryEnabled(true);
configuration.setHistoryLevel(HistoryLevel.FULL);
configuration.setDbHistoryUsed(true);
configuration.setProcessDiagramGenerator(customProcessDiagramGenerator);
//修改id生成器
configuration.setIdGenerator(new FlowIdGenerator());

View File

@ -64,7 +64,7 @@ public class SendMessageEventLister extends AbstractEventListener {
protected void taskCreated(FlowableEngineEntityEvent event) {
//任务创建可发送短信邮件通知接收人(代办人)
log.info("ManagerTaskEventListener----taskCreated任务创建监听{}",JSON.toJSONString(event));
sendDingTalkMessage(event);
// sendDingTalkMessage(event);
//todo 邮件通知
}