- 浏览: 212348 次
- 性别:
- 来自: 深圳
-
最新评论
-
totzc:
厉害了。算法永不过时
笛卡尔积算法的Java实现 -
calosteward:
感谢博主对二维码的介绍。________________tag ...
二维条形码 -
butata:
哈哈 在这看到谢工
在eclipse中配置tomcat,不用经常重启Tomcat -
cfanllm:
xiemingmei 写道jisuanjixuezi 写道你好 ...
Memcached GetAndTouch延长过期时间用法 -
xiemingmei:
jisuanjixuezi 写道你好 我用了Memcache ...
Memcached GetAndTouch延长过期时间用法
文章列表
我的软件环境:操作系统:win7 64位Eclipse: eclipse-jee-helios-SR2-win32-x86_64 也就是 Helios Service Release 2)JDK:jdk1.6.0_25Tomcat:apache-tomcat-6.0.32-windows-x64
步骤1:下载tomcat插件,我选用的是sysdeo,下载地址为:http://www.eclipsetotale.com/tomcatPlugin.html,下载后把把com.sysdeo.eclipse.tomcat_3.3.0文件夹copy到eclipse的plugin中去,不支持ecli ...
public class Test {
/**
* @param args
*/
public static void main(String[] args) throws Exception {
(1) Long t = new Long(1);
(2) System.out.println(t+1);
(3) Long t2 = t + 1;
(4) System.out.println(t2);
}
}
(2)t+1过程:t.longValue + 1;
(3)t+1过程:t.longValue + 1得 ...
在eclipse有中文的文件保存为乱码
解决办法:
Window-->Preferences-->General-->ContentTypes-->把需要的文件类型指定一种编码,比如UTF-8、GBK等。
Spring: Source Repositories The Spring 3.0 source code has been modularized and moved from the CVS repository at SourceForge to a new Subversion repository. The new repository for Spring 3.0 can be found at: https://src.springframework.org/svn/spring-framework/ The source code for Spring Framework 2. ...
Timer使用线程机制来实现,每个Timer对象后有一个后台线程,这个后台线程来执行该Timer对象的所用TimeTask任务。
Timer代码中有后台线程实例:
/**
* The timer task queue. This data structure is shared with the timer
* thread. The timer produces tasks, via its various schedule calls,
* and the timer thread consumes, executing timer ta ...
创建标签的过程和我们用来创建分支的过程不一样吧?事实上,他们是一样的。
在Subversion中,标签和分支没什么不同。这两者都是通过复制创建的普通的目录。
正如分支一样,复制得来的目录是“标签”的唯一原因是因为人们决定这么看待它:
只要没人提交到到这个目录,它永远是一个快照;
如果人们开始对它提交,它就成了一个分支。
对Spring的注解标签刚刚接触,所以就找了几个常用的,记录下,感觉注解用了之后,会在*.xml文件中大大减少配置量。以前我们每个Bean都得到配置文件中配置关联下。spring2.5后,引入了完整的annotation配置注解,使得我们的程序配置更简单更容易维护。
@Component;@Controller;@Service;@Repository
在annotaion配置注解中用@Component来表示一个通用注释用于说明一个类是一个spring容器管理的类。即就是该类已经拉入到spring的管理中了。而@Controller, @Service, @Repository ...