2019年12月7日

springboot 集成swagger2.x 后静态资源报404

摘要: package com.bgs360.configuration; import org.springframework.context.EnvironmentAware; import org.springframework.context.annotation.Bean; import org. 阅读全文

posted @ 2019-12-07 09:27 滚动的蛋 阅读(2515) 评论(0) 推荐(0)

2019年12月5日

Nginx 配置https

摘要: 1、准备好网站域名的https证书,后缀名如下,上传到服务器上。 xxx.pem xxx.key 2、配置nginx.conf server { listen 443 ssl; server_name scm.xxx.com; ssl on; ssl_certificate ./cert/cert. 阅读全文

posted @ 2019-12-05 17:41 滚动的蛋 阅读(479) 评论(0) 推荐(0)

Nginx 配置访问静态资源

摘要: 做个简单的配置: 以txt/png/mp4结尾的请求都会按照如下规则寻找返回文件 关键词: location、root location ~ \.(mp4|png|txt) { root /usr/local/tomcat9/webapps/scm; autoindex on; } 主义root代表 阅读全文

posted @ 2019-12-05 17:28 滚动的蛋 阅读(2607) 评论(0) 推荐(0)

2019年12月2日

[jenkins] 启动错误 Failed to start LSB: Jenkins Automation Server.

摘要: 解决办法见https://blog.csdn.net/qq_34208844/article/details/87865672 阅读全文

posted @ 2019-12-02 10:42 滚动的蛋 阅读(2276) 评论(0) 推荐(0)

2019年11月21日

JS !function 稀奇古怪的写法

摘要: !function(){alert("Execute after ()fun!")}(alert("Execute Firstly!")) 注意上面的执行顺序 阅读全文

posted @ 2019-11-21 12:00 滚动的蛋 阅读(207) 评论(0) 推荐(0)

2019年11月18日

业务场景后端优化

摘要: 有时候我们需要针对某一项业务做综合的查询服务,这个时候可能会需要关联多张表,此时无法保证性能,响应速度,这个时候就可以针对业务场景设计一张综合性的表将可能需要的数据统计到表中,在定时更新表即可,分离出单独的服务治理。 这样做有利于扩展,可以避免复杂的关联查询,关联查询时最好不要超过3表,设计时注意结 阅读全文

posted @ 2019-11-18 17:11 滚动的蛋 阅读(197) 评论(0) 推荐(0)

2019年11月15日

对称加密和非对称加密

摘要: 对称加密(symmetrical encryption) 采用单钥密码系统的加密方法,同一个密钥可以同时用作信息的加密和解密,这种加密方法称为对称加密,也称为单密钥加密。 常用算法:在对称加密算法中常用的算法有:DES、3DES、TDEA、Blowfish、RC2、RC4、RC5、IDEA、SKIP 阅读全文

posted @ 2019-11-15 09:32 滚动的蛋 阅读(523) 评论(0) 推荐(0)

2019年10月25日

清除Tomcat缓存

摘要: 删除tomcat目录下的缓存文件分别位于: tomcat/work tomcat/temp $ rm -rf xx tomcat 缓存class文件导致请求页面报错 --清除缓存删除work目录下的文件 阅读全文

posted @ 2019-10-25 15:32 滚动的蛋 阅读(377) 评论(0) 推荐(0)

Git 基本操作及命令

摘要: 认证部分 1、配置用户信息 git config --global user.name [username] git config --global user.email [email] 2、查询用户信息 git config --list 3、如果push遇到在输入密码是熟错后,就会报这个错误fa 阅读全文

posted @ 2019-10-25 15:19 滚动的蛋 阅读(159) 评论(0) 推荐(0)

MySQL常见内存不足启动失败的完美解决方法

摘要: Move to https://www.jb51.net/article/136432.htm 阅读全文

posted @ 2019-10-25 15:11 滚动的蛋 阅读(364) 评论(0) 推荐(0)

导航