站长推荐

Activiti清库脚本

在Activiti开发中,经常会产生大量垃圾数据,这时候就需要清理Activiti数据库,但是Activiti数据库中存在大量外键约束,所以就需要按顺序删除相关数据,具体顺序如下: DELETE FROM act_hi_attachment; DELETE FROM act_hi_comment; DELETE FROM act_hi_detail; DELETE FROM act_hi_actinst; DELETE FROM act_hi_identitylink; DELETE FROM act_hi_procinst; DELETE FROM act_hi_……

Spring boot集成Elastic-search并添加中文分词器

1. 在pom中添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> 2. 新建Elastic Search索引配置文件 es_setting.json { "index": { "analysis": { "analyzer": { "ik_pinyin_analyzer": { "type":……