Dependency Injection Using google/wire

Wire Use Tutorial Wire is a tool provided by Google to help Google developers implement compile-time dependency injection.Learn to use Wire through examples.Here's a small welcome program to learn how to use Wire. The first step in building a welcome program Let's create a applet that simulates an event with a greeting for a welcome guest with ...

Posted by dylan001 on Sat, 09 Nov 2019 01:10:34 -0800

Practice in JUnit for Selenium testing

Automated testing helps simplify the lives of software testers by allowing them to automate repetitive tasks, while open source test automation frameworks such as Selenium enable users to automate the Web test experience on a large scale But if you can't verify that the test case passed, what's the use of automated testing? This is a reflection ...

Posted by Pests on Thu, 07 Nov 2019 23:17:11 -0800

Using Swagger in the Spring Boot project

Project environment Srping Boot Version 2.0.6.RELEASE JDK Version 1.8 configuration file Configure Swagger, using the Swagger.java file Swagger.java package com.xxx.xxx.xxx.config; import com.google.common.base.Predicate; import com.google.common.collect.Lists; import org.springframework.beans.factory.annotation.Value; import org.sprin ...

Posted by squiggerz on Thu, 07 Nov 2019 12:33:30 -0800

js+node.js+socket.io realizes chat function (private chat, group chat creation)

Design sketch: Four clients are started for testing 1. Log in and get the list of online users2. Private chat function3. Group chat function I found WebSocket by chance. I found that it can communicate in real time and chat online. So I made a demo of chat tool and recorded it Source code Socket.io WebSocket is native to js, and Socket.io is a ...

Posted by slamMan on Thu, 07 Nov 2019 00:24:35 -0800

Pure css3 beautiful checkbox and radio beautification plug-in Pretty.css plug-in

Introduction of plug-ins pretty.css is a beautiful checkbox and radio beautification effect of pure css3. pretty.css can be used in combination with a variety of font icons to beautify the original checkbox and radio, and can also make the animation effect when the button is clicked. Browser compatibility Course pretty.css is a beautiful che ...

Posted by DarkShadowWing on Wed, 06 Nov 2019 13:54:13 -0800

Deep analysis of thread pool in java thread series -- construction method

(it's more convenient to see the source code on the horizontal screen of mobile phone) Note: java source code analysis part is based on java version 8 unless otherwise specified. brief introduction The construction method of ThreadPoolExecutor is to create the entry of thread pool. Although it's relatively simple, it has a large amount of in ...

Posted by cyberRobot on Mon, 04 Nov 2019 16:18:44 -0800

[Java compulsory course] four methods to obtain the Key Value Key in the Map through Value

1 Introduction We all know that Map is a container for storing Key Value pairs < Key, Value > and that the Key Value can be obtained quickly by using Map.get(key). However, sometimes we need to get the Value and find the Key. In this paper, four methods are introduced with an example. The Key Value is obtained by passing in the Value valu ...

Posted by piznac on Sun, 03 Nov 2019 02:42:22 -0800

go map data structure and source code details

Catalog 1. Preface 2. Data structure of go map 2.1 core nodule 2.2 data structure chart 3. Common operations of go map 3.1 create 3.2 insert or update 3.3 delete 3.4 search 3.5 range iteration 3.5.1 initialize iterator mapiterinit() 3.5.2 iterative p ...

Posted by Dysan on Sat, 02 Nov 2019 08:08:51 -0700

Python 3 basic multiplication table

       Python : 3.7.3          OS : Ubuntu 18.04.2 LTS         IDE : pycharm-community-2019.1.3       Conda : 4.7.5    typesetting : Markdown   code_1 """ @Author : Xing Xin @Date : 2019/7/2 @Blog : www.cnblogs.com/xingchuxin @Gitee : gitee.com/zhichengjiu """ def main(): # The final value is 9 end_num = 9 # Row cou ...

Posted by grga on Thu, 31 Oct 2019 15:56:11 -0700

canvas, the only front-end implementation in the whole network, supports multi graph compression and package and download

Technology stack: canvas JSZIP.js (the JSZIP Library of the compression and decompression plug-in on the web page side) Filesaver.js (file saved to local library) Direct interpretation of source code: <div class="cont"> <div class="uploadBtn">Select pictures<input name="file" accept="image/png, image/jpeg" multipl ...

Posted by basim on Thu, 31 Oct 2019 03:22:39 -0700