1. 数据库操作 2.验证用户 2.1. 查询 String sql = String.format("select count(*) from user where name='%s' and password='%s';", userName, userPass); int row = 0; jb.queryForObject(sql, Integer.class, row ); 根据 row 的值来判断是否有该用户. 2.1. 错误 Parameter index out of…
ValidUtils.java package com.lyqc.utils; import org.apache.commons.lang.StringUtils; public class ValidUtils { private static final String mobile = "^(13|15|18|17|16)[0-9]{9}$"; private static final String codeAndMobile = "^\\+[0-9]{2}\\-(13…
https://jwt.io/ RS256加密JWT生成.验证 https://blog.csdn.net/u011411069/article/details/79966226 How to load public certificate from pem file..? https://www.howtobuildsoftware.com/index.php/how-do/ciLJ/java-ssl-cryptography-bouncycastle-public-key-how-to-lo…