查询返回单个结果(一个值或一个类),以下例子是返回password,返回一个类与该方法类似,使用内部匿名类方式public boolean
checkUser(User user) { String name = user.getUsername(); String pass =
user.ge.....
分类:
移动开发 时间:
2014-05-15 21:36:12
阅读次数:
476
快要毕业了,之前学习的设计模式没有想到这么重要,马马虎虎就应付过去了,现在重新学习一下。在这里写一下自己所理解的装饰模式,语言不多,看代码吧……package
decorator;/** * User.java * 定义一个接口,规定好一个方法,以后所有的类都去实现或重写这个方法 * @author...
分类:
编程语言 时间:
2014-05-15 21:13:37
阅读次数:
371
通过brew 安装:brew install mariadb初始化数据库cd
/usr/local/Cellar/mariadb/10.0.10/scriptsmysql_install_db --user=`root`
--basedir="$(brew --prefix mariadb)" --...
分类:
数据库 时间:
2014-05-15 17:53:53
阅读次数:
913
user nginx; worker_processes 8;error_log
/usr/local/webserver/nginx/logs/nginx_error.log crit;pid
/usr/local/webserver/nginx/nginx.pid;#Spe...
分类:
其他好文 时间:
2014-05-15 14:24:31
阅读次数:
313
Here is a brief introduction and package of
dotfiles for linux/unix user.I think there are enough informative description
about the package.Here is th...
分类:
编程语言 时间:
2014-05-15 12:01:37
阅读次数:
370