Springboot integrates Elasticsearch

1. Introduce dependencies <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> 2. Two methods to configure ElasticSearch settings 1. Configure in application.yml spring: data: elasticsearch: cluster-nodes: localhost:9300 cluster-name: es-wyf 2. Configure using configuration classes /** * ElasticSearch client configuration */ @Configuration public class RestClientConfig extends AbstractElasticsearchConfiguration { @Override @Bean public RestHighLevelClient elasticsearchClient() { final ClientConfiguration clientConfiguration = ClientConfiguration.builder() .connectedTo(“localhost:9200”) […]

Spring Boot integrates Xxl-job to achieve awesome scheduled tasks

Article directory Why choose Xxl-job? Start integrating Xxl-job Step 1: Add dependencies Step 2: Configure the data source Step 3: Initialize database tables Step 4: Configure Xxl-job Step 5: Write scheduled tasks Step 6: Start the project Step 7: Access Xxl-job Admin Expansion: dynamically add and delete tasks Summarize Welcome to the architecture design column~Spring […]

[Git] Gui graphical management, SSH protocol private library integrated with IDEA use

1. Using Gui graphical interface 1. Open the manager according to your needs 2. Clone an existing library 3. Introduction to graphical interface 1. First update a code file in the local warehouse and use it: 2. Enter the graphical management interface to refresh code resources: 3. Click Stage changed to track the file and […]

The use of Git Gui + About SSH protocol and cloning corresponding file code + IDEA integration with Git, etc.

Table of Contents 1. Use of Git graphical interface 1.1 Preparation 1.2 Use of Git graphical interface 1.2.1 File code cloning 1.2.2 Check the effect of file GIt management 1.2.3 Git Gui page details illustration 1.2.4 Git Gui function demonstration effect (1) Temporary storage (2) Submission and comments (3) Push remote push 2. SSH protocol […]

PHP uses recursion to integrate its two-dimensional array into a hierarchical tree, where the hierarchical id is in a uuid format. The weird problem has been solved.

No more verbosity, just go directly to the source code. <?php function findChildren($list, $p_id){ $r = array(); foreach ($list as $k => $item) { if ($item[‘fid’] == $p_id) { unset($list[$k]); $length = count($r); $r[$length] = $item; if ($t = findChildren($list, $item[‘id’])) { $r[$length][‘children’] = $t; } } } return $r; } function findChildren2($list,$p_id, & amp;$sike=[]) […]

Spring Boot integration ElasticSearch

1 Add dependencies First create a project and add ES-related dependencies to the project. The specific dependencies are as follows: <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>7.1.0</version> </dependency> <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> <version>7.1.0</version> </dependency> 2 Create ES configuration Configure the relevant parameters of ES in the configuration file application.properties. The specific contents are as follows: elasticsearch.host=localhost elasticsearch.port=9200 elasticsearch.connTimeout=3000 elasticsearch.socketTimeout=5000 […]

3. Process practice-integrating bpmn-js

1. bpmn-js Download: https://bpmn.io/toolkit/bpmn-js/ The purpose of this article is not to write bpmn-js, but to directly copy a pre-made one as follows: 2. Business access address http://localhost:8080/bpmnjs/dist/index.html?type=lookBpmn &instanceId=180001 & amp;deploymentFileUUID=8 & amp;deploymentName=qingjia.bpmn & amp;AssigneeName=zhangsan 3. The main logic code for JavaScript display is as follows: //Example https://blog.csdn.net/qq_35664308/article/details/110469247 //Set color https://github.com/bpmn-io/bpmn-js-examples/tree/master/colors $.ajax({<!– –> //Get highlight […]

R language EG (Engle-Granger) two-step cointegration test, RESET, Granger causality test, VAR model to analyze the time series relationship between CPI and PPI…

Full text link: http://tecdat.cn/?p=31108 As basic indicators for measuring inflation, the relationship and transmission mechanism of consumer price index CPI and producer price index PPI have always been core issues in macroeconomic research. (Click “Read the original text” at the end of the article to get the completecode data) . Research on this issue obviously […]

SpringBoot integrates Swagger3, hurry up!

Article directory 1. What is Swagger? 2. Usage steps 1.Introduce swagger3 dependency 2. Add swagger.conf configuration class 3. Add application.yml configuration 4. Check whether the integration is successful 5.Commonly used annotations 6.swagger beautification Summarize 1. What is Swagger? Swagger is a standardized and complete framework for generating, describing, invoking, and visualizing RESTful-style web services. The […]

springboot integrates redis — spring-boot-starter-data-redis

springboot integrates redis Add dependencies yml configuration file RedisTemplate configuration Serialization redis tool class Current environment springboot version 2.7.17 Add dependencies <!– redis –> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <!– redis depends on commons-pool. This dependency must be added –> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-pool2</artifactId> </dependency> <!– Alibaba JSON parser –> <dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <version>2.0.14</version> </dependency> yml configuration […]