摘要: 1 public class MethodTest 2 3 { 4 public static void main(String[] args) 5 { 6 String [] names ={"tom","tim","allen","alice"}; 7 Class clazz = Test.class; 8 t... 阅读全文
posted @ 2016-10-04 19:11 okay4321 阅读(430) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh HOST=192.168.5.40 USER=abc PASS=123456 QUERY=`mysql -h$HOST -u$USER -p$PASS << EOF use testdb; select * from person where name='LiMing'; exi 阅读全文
posted @ 2016-10-04 18:25 okay4321 阅读(1341) 评论(0) 推荐(0) 编辑
摘要: spring的IOC容器能够帮我们自动new对象,对象交给spring管之后我们不用自己手动去new对象了。那么它的原理是什么呢?是怎么实现的呢?下面我来简单的模拟一下spring的机制,相信看完之后就会对spring的原理有一定的了解。 spring使用BeanFactory来实例化、配置和管理对 阅读全文
posted @ 2016-10-04 11:35 okay4321 阅读(122) 评论(0) 推荐(0) 编辑