上一页 1 2 3 4 5 6 ··· 22 下一页
摘要: 把某些目录或文件加入忽略规则,发现并未生效,原因是.gitignore只能忽略那些原来没有被track的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。那么解决方法就是先把本地缓存删除(改变成未track状态),然后再提交: git rm -r --cached . g 阅读全文
posted @ 2020-04-03 16:55 007少侠 阅读(501) 评论(0) 推荐(0) 编辑
摘要: jenkins线上构建项目时,有时候到拉取远程代码步骤时出现冲突比较烦人,也不方便登陆服务器中去解决冲突,这时候需要的解决方案是使用远程代码完全覆盖掉本地代码。做法如下: git pull 这命令替换成如下命令即可: git clean -df && git fetch --all && git r 阅读全文
posted @ 2020-04-03 11:01 007少侠 阅读(1684) 评论(0) 推荐(0) 编辑
摘要: 示例中 mysql字段类型为 datetime 使用到mysql函数 DATE_SUB() 和 now() 示例1: <!-- 更新5天前的订单 审核中-6 改成 审核失败-81 create_time <= DATE_SUB(now(), INTERVAL 5 DAY) 5天前,精确到秒 --> 阅读全文
posted @ 2020-04-02 15:21 007少侠 阅读(25059) 评论(0) 推荐(0) 编辑
摘要: 实现功能:对某个目录下所有请求接口进行拦截判断,如检测登录状态等。 需要pom.xml引入aop: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifa 阅读全文
posted @ 2020-03-31 15:13 007少侠 阅读(938) 评论(0) 推荐(0) 编辑
摘要: 检查OpenSSL 检查是否已经安装openssl: openssl version 一般在CentOS7上,openssl已经默认安装好了。 生成自签名的SSL证书和私钥 第一步:生成私钥 新建/etc/ssl/certs/www.ffcc.com目录并进入,后执行命令: openssl genr 阅读全文
posted @ 2020-03-27 18:37 007少侠 阅读(5492) 评论(0) 推荐(0) 编辑
摘要: 问题:通过浏览器输入https://www.mysite.com,后台通过request.getScheme()获取到的确实http而不是https 通过request.getRequestURL()拿到的也是http://www.mysite.com 分析原因,是因为用nginx+tomcat部署 阅读全文
posted @ 2020-03-16 23:10 007少侠 阅读(1165) 评论(0) 推荐(0) 编辑
摘要: 非频繁操作如下: String file = "F:" + File.separator + "a.txt"; FileInputStream fis = new FileInputStream(file); RandomAccessFile raf = new RandomAccessFile(n 阅读全文
posted @ 2020-03-12 11:53 007少侠 阅读(3903) 评论(0) 推荐(0) 编辑
摘要: 首先看下项目结构(其中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 阅读全文
posted @ 2020-03-08 16:07 007少侠 阅读(3745) 评论(0) 推荐(0) 编辑
摘要: 若是springmvc项目可参考:https://www.cnblogs.com/007sx/p/12439620.html 项目三方jar存放位置结构: pom.xml中引入三方jar: <dependency> <groupId>test</groupId> <artifactId>testa< 阅读全文
posted @ 2020-03-08 14:04 007少侠 阅读(7237) 评论(0) 推荐(1) 编辑
摘要: 注:此方式只适用于springmvc项目,springboot项目不可用! 若是springboot项目可参考:https://www.cnblogs.com/007sx/p/12442386.html 完整的引入三方jar包含2部分,缺一不可,第一部分为编写代码阶段,编译时引用!第二部分为打包成w 阅读全文
posted @ 2020-03-08 00:58 007少侠 阅读(4788) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 22 下一页
友情链接:便宜vps(CN2GIA线路)
站长统计: