Very simple addition, deletion, modification and query of elastic search

Steps are as follows 1 Maven for jar package management pom file <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> <dependencies> <dependency ...

Added by ocd on Mon, 13 Jan 2020 13:26:54 +0200

Replacing Zuul with Spring Cloud Gateway to access WebSocket

Reprinted from: https://www.bl-blog.com/a/9/27 Preface The previous project used Zuul gateway, which requires WebSocket, so I have been looking up the Spring Cloud Zuul's tutorials and articles on Forwarding WebSocket requests. I found that Zuul's support for WebSocket is not very friendly. To sum up, ...

Added by alecapone on Mon, 13 Jan 2020 11:42:48 +0200

The most powerful project in the history: the realization of user's microservice function

We have analyzed the users of the system, including the users of the background management system and the users of the front-end portal. In theory, the two should be managed separately. But for our project, there is no need to do such comprehensive and complex functions in the early stage, so at present ...

Added by j_70 on Sun, 12 Jan 2020 10:42:11 +0200

[Springboot] annotation @ ConfigurationProperties makes configuration neat and simple

1 Introduction Let's use an article earlier< [Spring] just want to record the use of @ Value in one article, and don't want to find any more (with mind map attached)> It explains in detail how to use @ Value in Spring to meet our configuration requirements. It is powerful and easy to use. But it also has its limitations. For example, for ...

Added by eashton123 on Sat, 11 Jan 2020 14:37:49 +0200

IOC theory derivation of Spring learning

This article is a note of watching the Java video of ecstasy. Video link: https://space.bilibili.com/95256449 Using IDEA for the first time, recording the use process and IOC theoretical derivation process, is the summary and review of today's study. Before the introduction of IOC, to develop MVC, ...

Added by sheila on Fri, 10 Jan 2020 20:02:35 +0200

Mybatis framework 7: integrating Spring in three ways

Required jar package:   Create a new lib folder and put it into the jar package. After build path -- > add to build path:   Original Dao development example: Under src: create a new core configuration file sqlMapConfig.xml: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" ...

Added by rowman on Fri, 10 Jan 2020 19:49:24 +0200

Spring boot2.x and redis reduce integrated operation redis cluster case

scene After a machine crashes in the redis cluster, the redis of the background service will always report an error and cannot connect to the redis cluster. View the redis cluster through the command. It is found that the redis cluster cluster is normal. The standby slave machine has been upgraded to master. Conjecture and verification It is pr ...

Added by wudiemperor on Wed, 08 Jan 2020 16:38:18 +0200

SpringBoot Series Tutorial Mybatis+Annotations Integration

SpringBoot Series Tutorial Mybatis+Annotations Integration The previous blog post described SpringBoot's process of integrating mybatis, but the way xml works always feels a bit frustrating; this article introduces a noxml usage posture that supports CURD purely with annotations <!-- more --> I. Environment This article uses SpringBoot ...

Added by shiny_spoon on Tue, 07 Jan 2020 05:47:25 +0200

Setup of sping MVC timer task

Timed tasks are used in the project. Write a note to record with your notes. First add the beans tag to the Spring configuration file ApplicationContext.xml file xmlns:task="http://www.springframework.org/schema/task" http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.1.xsd Currently, there ar ...

Added by reddevil on Mon, 06 Jan 2020 18:25:06 +0200

Spring boot 2.0 web plus file upload and download

Record the file upload and download of spring webplus. There is no HTTP servlet request and HTTP servlet response based on servlet container before using webplus. Instead, there are org.springframework.http.server.reactive.ServerHttpRequest and org.springframework.http.server.reactive.ServerHttpResponse. Application scenario: 1. File upload: ...

Added by Kasuke_Akira on Mon, 06 Jan 2020 15:20:45 +0200