摘要:public static byte[] Encrypt(byte[] bArr, byte[] bArr2) { try { SecretKey generateSecret = SecretKeyFactory.getInstance("DESede").generateSecret(new D
阅读全文
摘要:A:建议使用openssl 来生成rsa pkcs1 2048格式的公私钥。例如可使用:openssl genrsa -out private.pem 2048 来生成私钥,并使用openssl rsa -in private.pem -pubout -out public.pem从私钥来产生公钥。
阅读全文
摘要:1、返回值 lock 是voidtryLock 返回bool 2、时机 lock一直等锁释放 tryLock 返回true立即 或者waittime后false 3、实例 1、 lock.lock(10, TimeUnit.SECONDS); 间隔小于租期10s的时候,连续发送两次请求,第一个请求大
阅读全文
摘要:1、继承 PageDrawer 和 PDFRenderer获得文本框坐标 2、通过坐标获取文字 3、通过easyExcel生成表格 public class MyPageDrawer extends PageDrawer { static final List<Coordinate> COORDIN
阅读全文
摘要:@Target(ElementType.METHOD)@Retention(RetentionPolicy.RUNTIME)@Documented@Inheritedpublic @interface DuplicateSubmitToken { String key() default "";}
阅读全文
摘要:import java.io.*;public class moveMain { public static void main(String[] args) throws Exception {// String path="G:\\ideaWorkspace\\tzlion-data-platf
阅读全文
摘要:1 pom 文件 maven-assembly-plugin jar-with-dependencies tzzxtest.tmImageImport.App ...
阅读全文
摘要:/** * RSA公钥加密 * * @param str * 加密字符串 * @param publicKey * 公钥 * @return 密文 * @throws Exception * 加密过程中的异常信息 */public static String encrypt( String str,
阅读全文
摘要:package tz.lion.Utils.aop;import com.alibaba.fastjson.JSON;import org.springframework.web.multipart.MultipartFile;import tz.lion.config.shiro.SessionH
阅读全文
摘要:@Entity @Table(name="RS_SIGNUPUSER") public class RsSignUpUser { @Id @GenericGenerator(name="UUIDGENERATE",strategy="uuid2") @GeneratedValue(generator
阅读全文
摘要:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration>
阅读全文
摘要:<plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <compilerArguments> <
阅读全文
摘要:public void fileAlter(String fileName,String content) throws IOException{ BufferedReader reader = new BufferedReader(new FileReader(fileName)); String
阅读全文
摘要:pom.xml 内容: [html] view plaincopy <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.4</version> </dependenc
阅读全文
摘要:Java中读取某个目录下的所有文件和文件夹 javafilestringpathimportclass import java.io.File;public class Test1 { public static void main(String[] args) { String path="d:/
阅读全文