![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
读书笔记
iteye_15708
这个作者很懒,什么都没留下…
展开
-
零碎笔记
创建线程可以继承Thread类,也可以实现Runnable接口,创建Runnable对象作为参数传入Thread来创建。这两种实际上是一样的,因为本身Thread也是实现Runnable接口。不过在实践中还是最好用后一种创建方式,什么原因呢,Doug lea文章里说,一个是将代码分散到各个类里,可以避免开发者Thread类和Runnable中同步方法和同步块的交互,(我想,大概就是说你的类里不需要...原创 2013-06-01 21:14:45 · 83 阅读 · 0 评论 -
ubuntu常用软件
qq ubuntu kylin 官网应用-第三方应用 下载wine-qqintl 解压缩 用“wine-qqintl_0.1.3-2_i386.deb“ 安装term工具 fqterm原创 2015-07-03 10:48:38 · 123 阅读 · 0 评论 -
日常小tips
eclipse默认java文件缩进为tab,但是据说tab在某些环境会被解析成其他字符导致编译失败,因此google编码规范中规定用space代替tab,修改eclipse中java格式配置如下,windows-preferences-java-code style-formatter-edit-Tab policy 设置成Spaces only 设置好以后 原来的可以通过全选代码ctrl+s...原创 2014-03-02 13:25:39 · 93 阅读 · 0 评论 -
nginx负载均衡配置
测试服务器 tomcat 7.0.47 nginx 1.6.2 首先需要部署nginx服务器 假设为http://localhost:100080两台tomcat服务器 http://localhost:7080 http://localhost:8080 在nginx 配置文件nginx.conf中修改如下 http block中添加upstream block:...原创 2014-12-31 17:00:22 · 74 阅读 · 0 评论 -
Spring 配置scope为request,session,application的bean需要注意的小tip
当需要在系统中配置这些scope的Bean时,需要在web.xml中多配置<listener> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class></listener> 由于dispa...原创 2015-01-07 11:06:37 · 694 阅读 · 0 评论