package com.zfsoft.front.controller; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Map; import static org.apache.commons.lang3.StringUtils.replace; import static org.apache.commons.lang3.StringUtils.substring; import static org.apache.commons.lang3.time.DateFormatUtils.ISO_DATE_FORMAT; /** * ID card tools * Verify that the 18-digit ID number is legal * Verify that the 15-digit ID number is legal * Verify that the Taiwan ID card number is […]
Tag: validity
HGDB modify user password and validity period
1. Security version 1.1 Modify user password 1) When the three powers are turned on a. Modify non-admin user password Security and confidentiality administrator syssso User to modify the password of ordinary users (non-administrator users). Users connect to change their own passwords. –syssso user to modify the password of ordinary users. (cannot be modified to […]
Check the validity of infix expressions
Forward: https://www.cnblogs.com/unixfy/p/3234058.html Check the validity of infix expressions Earlier we discussed “Calculation of Infix Expressions” and “Detecting the Legality of Postfix Expressions”. Here we use the previous discussion on the two to detect the legality of infix expressions. . If the infix expression is legal, it returns the value of the expression; if it is […]
How to set the token validity period [5 application scenario analysis + dual token implementation analysis]
? The introduction and generation verification of the token have been shared in the previous blog, and those who need it can review it first. Portal: token introduction, and how to generate and verify token Article directory Foreword: Scenario 1: Internet cafe timing Scene analysis: Requirements for tokens: Practice: Summarize: advantage: shortcoming: Scenario 2: Esxi […]
How to implement Java SpringBoot to automatically verify the validity of input data
Java SpringBoot implements automatic verification of input parameter data through annotations under javax.validation.constraints If you encounter @NotEmpty or it will not take effect, pay attention to whether @Valid is added before @RequestBody Validation common annotation summary Constraint details @Null The commented element must be null @NotNull The commented element must not be null @NotBlank Annotated […]
How to implement Java SpringBoot to automatically verify the validity of input data
Java SpringBoot implements automatic verification of input parameter data through annotations under javax.validation.constraints If you encounter @NotEmpty or it will not take effect, pay attention to whether @Valid is added before @RequestBody Validation common annotation summary Constraint details @Null The commented element must be null @NotNull The commented element must not be null @NotBlank Annotated […]
Several methods of connection validity detection in database connection pool
Any application involving the database is basically inseparable from the use of the database connection pool tool, but when using it, for the application, there is no need to pay attention to whether the connection you get is available, unlike before, there is a famous MySQL connection The 8-hour question, now you don’t need to […]
Use Python to test the reliability and validity of the questionnaire, and perform factor analysis on the scale
Python language realizes reliability, validity test and exploratory factor analysis Reliability and validity test 1. Reliability test 1.1 Introduce the pandas library that needs to read the file and the pingouin library that calculates Cronbach’s a coefficient, and read the file 1.2 Calculation of Cronbach’s coefficient 2. Validity test 2.1 Bartlett’s sphericity test 2.2 KMO […]