会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
圣金巫灵
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
19
20
21
22
23
24
下一页
2018年11月13日
Java并发编程:volatile关键字解析-转
摘要: Java并发编程:volatile关键字解析 转自海子:https://www.cnblogs.com/dayanjing/p/9954562.html volatile这个关键字可能很多朋友都听说过,或许也都用过。在Java 5之前,它是一个备受争议的关键字,因为在程序中使用它往往会导致出人意料的
阅读全文
posted @ 2018-11-13 20:34 圣金巫灵
阅读(118)
评论(0)
推荐(0)
2018年11月12日
redis的数据类型命令
摘要: 存储sortedset: 存储:zadd key score menber1 score menber2 ... 升序排列:zrange key start end [withscores] 降序排列:zrevrange key start end [withscores] 取得前三名: 按照排名范
阅读全文
posted @ 2018-11-12 20:07 圣金巫灵
阅读(133)
评论(0)
推荐(0)
2018年11月8日
传输文件
摘要: secureCRT 使用sftp: alt+p打开sftp: 命令: put 文件所在盘符位置
阅读全文
posted @ 2018-11-08 16:50 圣金巫灵
阅读(163)
评论(0)
推荐(0)
2018年11月7日
spring定时器
摘要: 引入quartz的jar包 Application.xml中,Job,JobDetail ,Trigger,Scheduler解释: scheduler是一个计划调度器容器,容器里面可以放许多的trigger和jobdetail. 当容器启动后,里面的每个jobDetail都会根据trigger按部
阅读全文
posted @ 2018-11-07 17:38 圣金巫灵
阅读(164)
评论(0)
推荐(0)
发送邮件
摘要: 多处摘抄https://www.cnblogs.com/ysocean/p/7652934.html 按功能划分,邮件服务器可以划分为两种类型: ①、SMTP邮件服务器:用户替用户发送邮件和接收外面发送给本地用户的邮件,对应图的第一、二步。它相当于现实生活中邮局的邮件接收部门(可接收普通用户要投出的
阅读全文
posted @ 2018-11-07 16:39 圣金巫灵
阅读(250)
评论(0)
推荐(0)
2018年11月5日
redis启动
摘要: 在redis的安装目录的bin目录下: 1.启动服务(指定配置文件) ./redis-server redis.conf 2.启动客户端 ./redis-cli
阅读全文
posted @ 2018-11-05 19:40 圣金巫灵
阅读(184)
评论(0)
推荐(0)
2018年11月4日
springmvc静态资源无法加载
摘要: springmvc拦截所有请求,用/: <mvc:resources location="/WEB-INF/js/" mapping="/js/**"/> <mvc:resources location="/WEB-INF/css/" mapping="/css/**"/>
阅读全文
posted @ 2018-11-04 17:04 圣金巫灵
阅读(623)
评论(0)
推荐(0)
2018年11月1日
javamail发送邮件
摘要: 需要在邮件发送html表格,看到这篇文章(https://blog.csdn.net/mobile18611667978/article/details/70169338)。设置text/html即可 testMessage.setContent(messageText, "text/html;ch
阅读全文
posted @ 2018-11-01 10:08 圣金巫灵
阅读(118)
评论(0)
推荐(0)
2018年10月28日
spring事务
摘要: 因为spring的context是父子容器,所以会产生冲突,由ServletContextListener产生的是父容器,springMVC产生的是子容器,子容器Controller进行扫描装配时装配了@Service注解的实例,而该实例理应由父容器进行初始化以保证事务的增强处理,所以此时得到的将是
阅读全文
posted @ 2018-10-28 12:32 圣金巫灵
阅读(97)
评论(0)
推荐(0)
输出异常信息
摘要: Writer out = new StringWriter(); PrintWriter s = new PrintWriter(out); // 创建不带自动行刷新的新 PrintWriter。 exception.printStackTrace(s); //将异常信息放入out中 msg = o
阅读全文
posted @ 2018-10-28 12:01 圣金巫灵
阅读(376)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
下一页
公告