摘要: spring + redis 实现数据的缓存 1、实现目标 通过redis缓存数据。(目的不是加快查询的速度,而是减少数据库的负担) 2、所需jar包 注意:jdies和commons-pool两个jar的版本是有对应关系的,注意引入jar包是要配对使用,否则将会报错。因为commons-poolj 阅读全文
posted @ 2016-08-05 16:08 前度刘郎 阅读(3099) 评论(0) 推荐(0) 编辑
摘要: Java没有引用传递只有按值传递,没有引用传递只有按值传递,值传递。 1. public class Test { public static void main(String[] args ){ int var = 1 ; f(var) ; System.out.println(var) ; } 阅读全文
posted @ 2016-08-05 15:57 前度刘郎 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1.applicationContext.xml 中 加入task 的声明与xsd ? 1 xmlns:task="http://www.springframework.org/schema/task" ? 1 xmlns:task="http://www.springframework.org/s 阅读全文
posted @ 2016-08-05 15:18 前度刘郎 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Java代码 public interface Executor { /** * Executes the given command at some time in the future. The command * may execute in a new thread, in a pooled 阅读全文
posted @ 2016-08-05 15:06 前度刘郎 阅读(4502) 评论(0) 推荐(0) 编辑
欢迎来到戴建伟的博客!