摘要: Spring-Boot's auto-configurer seems good for simple applications. For example it automatically creates DataSource and JdbcTemplate, when you need to c... 阅读全文
posted @ 2014-07-12 14:26 维唯为为 阅读(2259) 评论(0) 推荐(0) 编辑
摘要: 参考:Git server on WindowsRepositoriesCreate a directory that contains your Git repositories, for example: D:/dev/repo/git. To get you started, go to the directory and create an empty Git repository.1cd D:/dev/repo/git2git init --bare Test.gitApache configurationIn this tutorial I use Apache 2.2.19. Y 阅读全文
posted @ 2012-12-12 18:45 维唯为为 阅读(1062) 评论(0) 推荐(0) 编辑
摘要: 摘自:iLinux0Feb 22 2006 4:26PMCONVERT(CHAR(19), CURRENT_TIMESTAMP, 0)102/22/06CONVERT(CHAR(8), CURRENT_TIMESTAMP, 1)206.02.22CONVERT(CHAR(8), CURRENT_TIMESTAMP, 2)322/02/06CONVERT(CHAR(8), CURRENT_TIMESTAMP, 3)422.02.06CONVERT(CHAR(8), CURRENT_TIMESTAMP, 4)522-02-06CONVERT(CHAR(8), CURRENT_TIMESTAMP, 阅读全文
posted @ 2012-12-12 18:44 维唯为为 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 摘自:jiazimo的专栏两个小例:运用El表达式截取字符串${fn:substring(wjcd.lrsj, 0, 16)}使用functions函数来获取list的长度${fn:length(list)}一、内置函数两个小例:运用El表达式截取字符串${fn:substring(wjcd.lrsj, 0, 16)}使用functions函数来获取list的长度${fn:length(list)}1.引入functions标签库<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/function 阅读全文
posted @ 2012-12-12 18:42 维唯为为 阅读(1565) 评论(0) 推荐(0) 编辑
摘要: 建立google code 与github的git 版本控制的代码库先下载并安装好gitgithub与google code都有git下载github:https://help.github.com/articles/set-up-gitgooglecode:http://code.google.com/p/msysgit/downloads/list#对提交设置默认的名字$ git config --global user.name "Your Name Here"#设置全局($HOME/.gitconfig)的email信息$ git config --global u 阅读全文
posted @ 2012-12-12 18:41 维唯为为 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 手动安装Maven依赖包例如要安装这样一个依赖到maven本地仓库:1.将此依赖添加到项目的pom.xml<dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>sqljdbc4</artifactId> <version>3.0</version></dependency>2.在命令行中执行install命令mvn install:install-file -Dfile=sqljdbc4-3.0.jar -Dgroup 阅读全文
posted @ 2012-12-12 18:34 维唯为为 阅读(867) 评论(0) 推荐(0) 编辑
摘要: 各种数据库Hibernate链接配置Derbydb driver maven dependency<dependency><groupId>org.apache.derby</groupId><artifactId>derbyclient</artifactId><version>10.2.2.0</version></dependency>hibernate.propertieshibernate.dialect=org.hibernate.dialect.DerbyDialecthibernat 阅读全文
posted @ 2012-12-12 18:32 维唯为为 阅读(12832) 评论(0) 推荐(1) 编辑
摘要: 配置http访问站点编辑httpd.conf文件#方式一:配置虚拟主机<VirtualHost localhost> #ServerAdmin luowei010101@gmail.com DocumentRoot "D:/javascript/js_projects" #ServerName vvvv.com ErrorLog "D:/javascript/js_projects/error.log" <Directory "D:/javascript/js_projects"> Options Indexe 阅读全文
posted @ 2012-12-12 18:30 维唯为为 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Ubuntu源列表用gedit或其他编辑器打开:gksu gedit /etc/apt/sources.listkdesudo kate /etc/apt/sources.listgksu mousepad /etc/apt/sources.listgksu leafpad /etc/apt/sources.list (12.04版)gksu gedit /etc/apt/sources.list#Ubuntu 官方更新服务器(欧洲,此为官方源,国内较慢,但无同步延迟问题,电信、移动/铁通、联通等公网用户可以使用):deb http://archive.ubuntu.com/ubuntu/ p 阅读全文
posted @ 2012-09-16 17:26 维唯为为 阅读(1202) 评论(0) 推荐(0) 编辑
摘要: 完整链接: http://blog.163.com/luowei505050@126/blog/static/11990720620128682726877/ memcache与EHcache的选择 使用缓存的原则就是:尽量用低开销的计算代替高开销的计算。比如直接从数据库查询的开销要远高于内存中的计算返回,网络请求要远高于本地(同一VM中)请求。 Memcache:分布式内存对象缓存... 阅读全文
posted @ 2012-09-06 20:30 维唯为为 阅读(2007) 评论(1) 推荐(0) 编辑
摘要: 安装配置1.从http://www.mongodb.org下载解压后,mongodb是一个独立的,不包含任何操作系统依赖,所以你可以在任何文件夹上运行mongodb,进到解压目录,运行:md data md data\db 来创建数据库文件夹,也可以手动指定数据库文件平,使用以下命令:C:\mongodb\bin\mongod.exe --dbpath d:\test\mongodb\data 如果路径包含空格,用双引号包起来C:\mongodb\bin\mongod.exe --dbpath "d:\test\mongo db data" 用户管理以admin登录,adm 阅读全文
posted @ 2012-09-06 19:47 维唯为为 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 单元测试JUnit说明1.JUnit4 的执行的一般流程: a)首先获得待测试类所对应的 Class对象。 b)然后通过该 Class对象获得当前类中所有 public 方法所对应的 Method 数组。 c)遍历该Method数组,取得每一个Method对象 d)调用每个Method 对象的isAnnotationPresent(Test.class)方法,判断该方法是否被 Test注解所修饰。... 阅读全文
posted @ 2012-09-05 13:14 维唯为为 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: 观察者模式说明观察者模式的组成 – 抽象主题角色:把所有对观察者对象的引用保存在一个集合中,每个抽象主题角色都可以有任意数量的观察者。抽象主题提供一个接口,可以增加和删除观察者角色。一般用一个抽象类或接口来实现。 抽象观察者角色:为所有具体的观察者定义一个接口,在得到主题的通知时更新自己。– 具体主题角色:在具体主题内部状态改变时,给所有登记过的观察者发出通知。具体主题角色通常用一个子类实现。 ... 阅读全文
posted @ 2012-09-05 13:13 维唯为为 阅读(459) 评论(0) 推荐(0) 编辑
摘要: MySQL的导入导出 导入sql脚本 方式一 mysql -u 用户名 -p 数据库名 < 存放位置 mysqljump -u root -p test < c:\a.sql方式二 1.在命令行输入以下命令 >mysql -u root -p123mysql>use test;mysql> source c:/test.sql用show tables;查看有哪些表 ... 阅读全文
posted @ 2012-09-03 19:42 维唯为为 阅读(332) 评论(0) 推荐(0) 编辑
摘要: CURL 命令行浏览器的使用 1)访问指定的网页curl http://www.yahoo.com2)保存指定网页到文件curl http://www.yahoo.com > page.html用curl的内置option就好,用option: -ocurl -o page.html http://www.yahoo.com3)使用代理访问使用curl的时候,用这个option可以指... 阅读全文
posted @ 2012-09-03 19:41 维唯为为 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 安装(一)1、所需软件列表: memcached-1.4.5.tar.gz libevent-1.4.12-stable.tar.gz Memcache用到了libevent这个库用于Socket的处理,在http://www.danga.com/memcached下载这两个软件至本地/usr/local/src目录,命令如下: cd /usr/local/src wget http://m... 阅读全文
posted @ 2012-09-01 20:59 维唯为为 阅读(1010) 评论(0) 推荐(0) 编辑
摘要: Installing on DebianVersionsThese instructions are for Debian Lenny 5.0 or Squeeze 6.0. You will need to make sure that your username is on the sudo authorized list located at '/etc/sudoers'.Build Too... 阅读全文
posted @ 2012-09-01 16:22 维唯为为 阅读(836) 评论(0) 推荐(0) 编辑
摘要: 参考地址:http://redis.io/topics/quickstart redis 是一个高性能的key-value数据库。 redis的出现,很大程度补偿了memcached这类keyvalue存储的不足,在部分场合可以对关系数据库起到很好的补充作用。它提供了Python,Ruby,Erlang,PHP客户端,使用很方便。安装过程:Redis是一种高级key-value数据库。它跟memcached类似,不过数据可以持久化,而且支持的数据类型很丰富。有字符串,链表,集合和有序集合。支持在服务器端计算集合的并,交和补集(difference)等,还支持多种排序功能。所以Redis也可以被 阅读全文
posted @ 2012-09-01 15:57 维唯为为 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 维唯为为:Ruby的学习笔记2(Ruby的个性) 阅读全文
posted @ 2012-08-19 13:46 维唯为为 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 维唯为为:Ruby学习笔记1(一个小时学会Ruby) 阅读全文
posted @ 2012-08-19 13:41 维唯为为 阅读(128) 评论(0) 推荐(0) 编辑