摘要: Class.getResourceAsStream() 会指定要加载的资源路径与当前类所在包的路径一致。 例如你写了一个MyTest类在包com.test.mycode 下,那么MyTest.class.getResourceAsStream("name") 会在com.test.mycode包下查 阅读全文
posted @ 2017-02-27 14:16 Boven 阅读(7913) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.sina.com.cn/s/blog_4550f3ca0100ubmt.html 1.有些参数在某些阶段中是常量 比如 :a、在开发阶段我们连接数据库时的连接url,username,password,driverClass等 b、分布式应用中client端访问serve 阅读全文
posted @ 2017-02-27 14:11 Boven 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 转:http://stamen.iteye.com/blog/1926166 先来看下A和B两个模块 转:http://stamen.iteye.com/blog/1926166 先来看下A和B两个模块 A模块和B模块都分别拥有自己的Spring XML配置,并分别拥有自己的配置文件: A模块 A模 阅读全文
posted @ 2017-02-27 14:08 Boven 阅读(500) 评论(0) 推荐(0) 编辑