Spring boot uses redis through redisTemplate without manual serialization

                     For some operations of redisTemplate, please refer to the following two articles http://blog.csdn.net/whatlookingfor/article/details/51863286 http://www.jianshu.com/p/7bf5dc61ca06 Import redis dependency <dependency>    <groupId>org.springframework.boot</groupId>    <artifactId>spr ...

Posted by departedmind on Mon, 25 Nov 2019 12:58:04 -0800

Why is it not necessary to write version number < version > when writing dependencies < dependencies > in maven configuration of some spring projects

Why do you not need to write version number when writing dependency in maven configuration of some spring projects I. The first situation: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId&gt ...

Posted by sherri on Sun, 24 Nov 2019 14:24:27 -0800

Groovy Unit Test Framework spock Data Driven Demo

spock is an all-round unit testing framework. The last article shared the use of the basic features of the spock framework, and on that basis, I made some attempts based on Groovy encapsulation, data-driven, and some advanced Groovy syntax I wrote.There's still a bit of a problem, I don't know if it's because I'm a Java and Groovy hybrid proj ...

Posted by MLJJ on Sun, 17 Nov 2019 00:01:42 -0800

shiro four encryption realm login and logout

shiro encryption operation Hash algorithm is generally used to generate summary information of data. It is an irreversible algorithm, which is generally suitable for storing data such as passwords, and common hash legal persons such as MD5 and SHA. In general, it is better to provide a salt for hash algorithm, such as encrypte ...

Posted by isuckat_php on Sat, 16 Nov 2019 14:12:58 -0800

Activity5 workflow (6)

Three ways to assign personal tasks User task is the task of user operation. Personal task is one of user tasks. This blog will briefly introduce three ways to assign personal tasks. I. flow chart ​ Figure 1 flow chart of user task allocation 2. Method 1: directly appoint the handler 1. Configure task nodes in the flowch ...

Posted by mpb001 on Fri, 15 Nov 2019 12:11:24 -0800

The lambda expression of java

Why use Lambda expressions Lambda is an anonymous function. We can understand lambda expression as a piece of code that can be passed (passing code like data). Use it to write more concise and flexible code. As a more compact code style, Java language expression ability has been improved. Lambda expression Lambda expression syntax Lambd ...

Posted by merrittj on Wed, 13 Nov 2019 06:34:03 -0800

Summary of jmockit use

The company has high requirements for unit testing of developers, requiring branch coverage and row coverage to be more than 60%. Jmockit, a powerful mock framework, has been integrated in the project. It is imperative to learn to use this framework. From the first time I couldn't write at all, to being able to cope with work requirements, I st ...

Posted by torsoboy on Sat, 09 Nov 2019 01:51:47 -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

(android Development) upload files using okhttp

To develop android mobile client, you often need to upload files to the server, such as: photos in your mobile phone. Using okhttp would be a good choice. It is easy to use and efficient to run. First, add implementation 'com. Square up. Okhttp3: okhttp: 3.8.1' in the dependencies of app/build.gradle. You can refer to the following ...

Posted by kayess2004 on Sat, 02 Nov 2019 12:23:41 -0700

Spring boot integrated mongodb single data source configuration

Mongodb is used in the new project, so mongodb is installed on the virtual environment linux on the personal computer. Practice and get familiar with it. 1. Start mongodb on the virtual machine. First check the ip address of the virtual machine, forget ha~~ Command line > ifconfig Mongodb installation directory bin > sudo. / mongod - ...

Posted by coho75 on Fri, 01 Nov 2019 18:09:21 -0700