09 2019 档案

摘要:timeToLiveSeconds和timeToIdleSeconds比较:(只有在eternal为false时,这2个属性才有效) 现在假设有如下配置: timeToIdleSeconds=60 timeToLiveSeconds=180 则一个数据被添加进缓存后,该数据能够在缓存中存活的最长时间 阅读全文
posted @ 2019-09-30 15:09 brx_blog 阅读(201) 评论(0) 推荐(0)
摘要:import java.security.MessageDigest; public class MD5Util { public static String getMD5(byte[] source) { String s = null; char hexDigits[] = { // 用来将字节转换成 16 进制表示的字符 '0',... 阅读全文
posted @ 2019-09-27 16:14 brx_blog 阅读(128) 评论(0) 推荐(0)
摘要:将脚本复制到sql所在文件夹下,chmod -R 777 restore.sh 修改权限修改脚本里的sql文件名即可启动时:nohup ./restore.sh & 注意注意!此时不能直接关闭终端,需要按回车再次进入命令行,输入命令 exit 退出终端,然后才可关闭终端,如果在nohup执行成功后直 阅读全文
posted @ 2019-09-26 17:39 brx_blog 阅读(568) 评论(0) 推荐(0)
摘要:sehll基础: https://www.runoob.com/linux/linux-shell-variable.html mysql备份脚本: https://www.cnblogs.com/tengfei520/p/7928700.html shell基础问题: https://blog.c 阅读全文
posted @ 2019-09-26 13:17 brx_blog 阅读(157) 评论(0) 推荐(0)
摘要:通过其两个属性name以及havingValue来实现的,其中name用来从application.properties中读取某个属性值。如果该值为空,则返回false;如果值不为空,则将该值与havingValue指定的值进行比较,如果一样则返回true;否则返回false。如果返回值为false 阅读全文
posted @ 2019-09-24 15:38 brx_blog 阅读(3808) 评论(0) 推荐(0)
摘要:@Configurationpublic class CorsConfig { @Bean public FilterRegistrationBean getBean() { System.out.println("进入跨域设置"); CorsConfiguration config = new C 阅读全文
posted @ 2019-09-16 19:38 brx_blog 阅读(525) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/cbd5713a8f26 阅读全文
posted @ 2019-09-05 14:34 brx_blog 阅读(161) 评论(0) 推荐(0)