redis data structure and common commands
1.set
1. An unordered and unique set of string elements
sadd key member1 [member2]: add multiple members
Scar key: count members
sdiff key1 [key2]: find out the difference set of two sets, the members that key2 does not have in key1
sidffstore des key1 [key2]: save the difference set to the des ...
Added by nostradamus on Thu, 31 Oct 2019 11:39:59 +0200
Using IK word breakers, extending IK word banks, and stopping word banks
Using IK word breakers
Integrated ik word breaker https://mp.csdn.net/postedit/93602713
Entity class PosEntity
/** Omit getter and setter*/
class PosEntity{
private Integer posId;
private String posName;
private String posAddress;
}
In entity class, posName and posAddress are both used as Chinese fields, a ...
Added by tomm098 on Thu, 31 Oct 2019 10:41:32 +0200
Android skin changing alternative solution
https://www.jianshu.com/p/b0253de8ac04
This is an article about three popular skin changing schemes. It's very good, but it's not suitable. Here's the way I think about it and happen to produce it:
The first is about text color change of TextView:
Because our APP uses one font in a unified way, the customized TextVie ...
Added by Roman Totale on Thu, 31 Oct 2019 09:49:18 +0200
Struts upload picture
Struts upload picture
Today, I have finished the image upload and page display of the last blog.
File upload scheme:
Upload to tomcat server
Upload to the specified file directory, add the mapping relationship between the server and the real directory, so as to decouple the relationship between the u ...
Added by zxsalmanxz on Wed, 30 Oct 2019 17:37:21 +0200
Spring Boot developing WeChat public address background
Hello, everyone, little brother, today, I want to talk to you about an interesting topic, which is to use WeChat Boot to develop the background of WeChat public address.
Many little friends may notice SongGe's personal website( http://www.javaboy.org A few days ago, the function of unlocking the website articles was released on a public address ...
Added by liam1412 on Wed, 30 Oct 2019 05:28:32 +0200
How to use Swagger to add JWT authorization documents for. NET Core 3.0 applications
brief introduction
This tutorial is written in the thinking mode of WHAT-what-HOW Golden Circle. The Golden Circle principle emphasizes learning from WHY to WHAT to learn and HOW to learn. From fuzzy to clear learning mode. Everyone's time is very precious. Before we do something, we should first think about WHY we should do it and WHAT kind o ...
Added by Dethman on Wed, 30 Oct 2019 03:57:09 +0200
MyCat tutorial 6: global serial number - self growth of global primary key
Global primary key auto increment
I. self increasing method of local files
&e ...
Added by hometoast on Fri, 25 Oct 2019 16:57:58 +0300
MyCat tutorial 5: implementing database and table division
in this paper, we will introduce the operation of MyCat's sub database and sub table.
Sub library table
I. Introduction to segmentation rules
various segmentation rules supported by myCat are defined in rule.xml.
Mod long
Sharding by month
Sharding by date
Splitting by hour
Range agreement: plan ...
Added by alex.hughson on Fri, 25 Oct 2019 16:46:16 +0300
eclipse builds maven+ssm
eclipse builds maven+ssm
Create a maven project
Create a good directory structure
Solve this small error report
Modify the corresponding Tomcat version
The directory of maven project is org.eclipse.wst.common.project.facet.core.xml.
Just change the version of jdt.web to the version corresponding to ...
Added by crazycaddy on Fri, 25 Oct 2019 13:26:17 +0300
Spring Boot 2.X: Custom registration Servlet, Filter, Listener
Preface
The web.xml file has been removed from Spring Boot. If you need to register and add Servlet, Filter and Listener as Spring Bean, there are two ways in Spring Boot:
Annotation @ WebServlet, @ WebFilter, @Listener Used to configure.
Spring Boot JavaConfig annotation is used to configure the Bean.
Before registration
When using Servlet, ...
Added by andrewtayloruk on Fri, 25 Oct 2019 03:58:18 +0300