[Java Series 004] don't underestimate Redis distributed lock
Hello, I'm miniluo. For positions requiring distributed experience, interviewers always like to ask questions about distributed locks. Recently, I have the honor to participate in the company's interview, and I often ask about the knowledge of distributed locks. Most of the candidates' answers are more limited to using, and they have not though ...
Posted by Sekka on Sun, 05 Apr 2020 01:39:05 -0700
How can the code for dao and entity be generated automatically in actual development?A tool for you
01
Focusing on your "Ape Story" friends, you know that previous articles have advocated rejection of CRUD. What is CRUD?Today let's talk about how the Java sisters and apes interact with the old database man.
Product Xiao Wang Tiao said forcefully: Ape classmates, let's launch a pop-up product in the near future, you first achieve ...
Posted by Vebut on Sat, 04 Apr 2020 22:52:17 -0700
ThinkPHP5.0+APP+ Alipay payment server development
Working environment, Alipay account is company, app application and secret key configuration are my own application, and the process is temporarily skipped.
1, Preparations
appid, application private key, application public key, Alipay public key
2, Profile
'alipay'=>[
'appId' => '20180300000000',
'gatewayU ...
Posted by hchsk on Sat, 04 Apr 2020 20:08:39 -0700
mongoDBmongoDB Replica Set Actual
mongoDB Replica Set Actual Warfare
background
Features of a mongoDB single server:
- Risk of data loss
- Single server cannot be highly available
Features of the mongoDB replica set:
-High Availability Architecture to Prevent Data Loss
- Keep multiple replicas synchronized and consistent
- The mongodb replica set switches automatically when ...
Posted by Cheap Commercial on Sat, 04 Apr 2020 19:15:46 -0700
Oracle database inserts data in table B into table A in batches
Business description: table A is the detailed statement of table B. now it is required that table B has millions of records. Insert the relevant records of table B in table A.
Preparation: oracle database, database tool pl\sql, stored procedures written in the package.
Implementation ideas:
3.1 get the total data volu ...
Posted by name1090 on Sat, 04 Apr 2020 13:06:07 -0700
[Seata microservice distributed transaction] 2. Construction of Seata microservice distributed transaction project
Citation dependency
<!--seata-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-seata</artifactId>
<exclusions>
<exclusion>
<artifactId>seata-all</artifactId>
<groupId>io.seata</groupId>
< ...
Posted by paul2463 on Sat, 04 Apr 2020 03:27:30 -0700
C ා basic knowledge series-7 Linq details
Preface
In the previous article, I briefly introduced Linq's entry-level usage. This article tries to explain some more in-depth usage methods. Unlike the previous article, I will first introduce the support methods in Linq, and then write them in the form of method chain and SQL like, guided by the actual requirements.
Introduction to pre conc ...
Posted by rjs34 on Sat, 04 Apr 2020 02:58:21 -0700
Week 5 [item 3] bracket match
/*
*Copyright (c)2017, School of computer and control engineering, Yantai University
*All rights reservrd.
*Author: Li Xinhao
*Completion time: December 14, 2017
*Version number: v1.0
*Problem Description: suppose three kinds of parentheses are allowed in an expression: parentheses, square brackets, and brac ...
Posted by Joseph07 on Fri, 03 Apr 2020 23:31:37 -0700
The ExpandableListView control implements the second level list
The renderings are as follows:
Click event is attached to the secondary list.
1. Layout file:
A custom navigation RelativeLayout is added here. Remember to add "Android: theme" = "@ style / theme. Appcompat. Light. Noactionbar" When noting activity to remove the navigation.
1 <?xml version="1.0" encoding="utf-8"?> ...
Posted by meckr on Fri, 03 Apr 2020 17:26:47 -0700
MySQL - basic operation
Database operation:
Create database:
CREATE DATABASE database name;
View database:
# View all databases
SHOW DATABASES;
Create database:
#Select a database / switch to xxx database
USE database name;
Create database:
#Delete database
DROP DATABASE database name;
Table operation:
Create table:
# Multiple param ...
Posted by EnDee321 on Fri, 03 Apr 2020 15:15:22 -0700