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

Call another Activity in Android and return the result - take the analog selection avatar function as an example

scene Click the button in Android to start another Activity and transfer values between activities: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103919470 How to get the return value of Acitvity after launching Activity and Value Transfer above.The following example implements clicking the Select Avatar button, jumping to the avata ...

Added by urneegrux on Fri, 10 Jan 2020 06:57:03 +0200

SpringBoot2 integrates Zookeeper components to manage service coordination in the architecture

Source code for this article: GitHub. Click here || GitEE. Click here 1. Introduction to Zookeeper Foundation 1. Introduction to concepts Zookeeper is an Apache open source, distributed application that provides a coordinated service for the system architecture.Viewed from the design mode perspective, this component is a framework based on the ...

Added by mesz on Fri, 10 Jan 2020 02:01:38 +0200

Learning state mode of design mode

State mode State Pattern is a behavioral pattern. Include roles Allows an object to change its behavior when its internal state changes. The main solution of state mode is when the conditional expression controlling the state of an object is too complex.Complex judgment logic can be simplified by transferring the judgment logic of States t ...

Added by buckit on Thu, 09 Jan 2020 10:19:33 +0200

10. Regular Expression Matching

Given a string (s) and a character pattern (p). Implementation supports regular expression matching of '.' and '*'. '. Matches any single character. '*' matches zero or more preceding elements. The match should cover the entire string (s), not part of the string. Explain: s may be empty and contain only lowercase letter ...

Added by tablex on Tue, 07 Jan 2020 17:43:21 +0200

C - Operator overload

Through operator overloading, we can use standard operators for our designed classes, such as +, - and so on. This is called overloading, because when using specific parameter types, we provide our own implementation code for these operators in the same way as overloading methods, and also provide different parameters for methods with the same ...

Added by Wien on Tue, 07 Jan 2020 16:49:11 +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

mybatis takes notes

mybatis integration springboot Guide Pack <dependency>     <groupId>org.mybatis.spring.boot</groupId>     <artifactId>mybatis-spring-boot-starter</artifactId>     <version>1.3.2</version> </dependency> <dependency>     <groupId>mysql</groupId>     <artifactId>mysql ...

Added by merkinmuffley on Mon, 06 Jan 2020 19:01:03 +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

Algorithms Note 12 - Shortest Path

Weighted Directed Graph data structure Weighted Directed Edge Weighted Directed Graph Shortest path Edge Relaxation Dijkstra algorithm Maps or navigation systems are typical applications of shortest paths, where vertices correspond to intersections, edges correspond to highways, and edge weights correspond to the cost (time or distance) of ...

Added by psycovic23 on Mon, 06 Jan 2020 13:18:03 +0200