IDEA integrates Hadoop3.x under Windows

1. Hadoop development package download 1.1 Download the corresponding hadoop development package on the windows system, for example: hadoop3.3.5 version 1.1 Unzip the development package and rename it 2. Patch 2.1 Since it is a windows development system, some patches need to be installed to run normally. Install them in the bin directory of hadoop. […]

SpringBoot–middleware technology-3: Integrate mongodb, integrate ElasticSearch, attached case with code (simple and easy to understand)

SpringBoot integrates mongodb Implementation steps: pom file import coordinates <!–mongo–> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> Yaml configuration file configures mongodb: spring: data: mongodb: uri: mongodb://localhost/spring Just create a pojo @Data @NoArgsConstructor @AllArgsConstructor public class Book {<!– –> private int id; private String name; […]

“The charm of the GUI graphical interface, the secure communication of the SSH protocol and the efficient development of IDEA integrated with Git”

Article directory introduction 1. Practical application of GUI graphical interface 2. Secure communication using SSH protocol What is SSH? git/github generates the key and passes Remote github warehouse configuration 3. Quick start guide for integrating Git with IDEA Summarize Introduction In the field of computer science, a graphical user interface (GUI) is a user interface […]

SpringBoot2.X integration integrates Dubbo

Environment installation Dubbo uses zookeeper as the registration center. You must first install zookeeper. Install zookeeper on Windows as follows: https://blog.csdn.net/qq_33316784/article/details/88563482 Install zookeeper on Linux as follows: https://www.cnblogs.com/expiator/p/9853378.html SpringBoot new project If you still don’t know how to create a new SpringBoot project, you can refer to: https://www.cnblogs.com/expiator/p/15844275.html Service providerDubbo-provider Created dubbo-provider module as a […]

SpringBoot integrates Shiro

1. What is Shiro Shiro is a security framework provided by Apache. It is a permission management framework that performs authentication, authorization, password and session management. It is very powerful and easy to use; There is Spring Security in Spring, which is a permissions framework. It is too closely dependent on Spring and is not […]

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 […]

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=[]) […]