03 2020 档案
摘要:实现功能:对某个目录下所有请求接口进行拦截判断,如检测登录状态等。 需要pom.xml引入aop: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifa
阅读全文
摘要:检查OpenSSL 检查是否已经安装openssl: openssl version 一般在CentOS7上,openssl已经默认安装好了。 生成自签名的SSL证书和私钥 第一步:生成私钥 新建/etc/ssl/certs/www.ffcc.com目录并进入,后执行命令: openssl genr
阅读全文
摘要:问题:通过浏览器输入https://www.mysite.com,后台通过request.getScheme()获取到的确实http而不是https 通过request.getRequestURL()拿到的也是http://www.mysite.com 分析原因,是因为用nginx+tomcat部署
阅读全文
摘要:非频繁操作如下: String file = "F:" + File.separator + "a.txt"; FileInputStream fis = new FileInputStream(file); RandomAccessFile raf = new RandomAccessFile(n
阅读全文
摘要:首先看下项目结构(其中fastjson-1.2.59.jar为工具类使用到的三方jar): pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns
阅读全文
摘要:若是springmvc项目可参考:https://www.cnblogs.com/007sx/p/12439620.html 项目三方jar存放位置结构: pom.xml中引入三方jar: <dependency> <groupId>test</groupId> <artifactId>testa<
阅读全文
摘要:注:此方式只适用于springmvc项目,springboot项目不可用! 若是springboot项目可参考:https://www.cnblogs.com/007sx/p/12442386.html 完整的引入三方jar包含2部分,缺一不可,第一部分为编写代码阶段,编译时引用!第二部分为打包成w
阅读全文