摘要:
在spring 3.0中,可以通过使用@value,对一些如xxx.properties文件中的文件,进行键值对的注入,例子如下:1 首先在applicationContext.xml中加入: 的命名空间,然后2 3 创建test.properties abc=1234import org.spr... 阅读全文
摘要:
一、只读取单个 properties 文件1、在 spring 的配置文件中,加入引入命名空间:xmlns:util="http://www.springframework.org/schema/util"xsi:schemaLocation="http://www.springframework.... 阅读全文
摘要:
二、BoneCP主要配置参数1.jdbcUrl设置数据库URL2.username设置数据库用户名3.password设置数据库密码4.partitionCount设置分区个数。这个参数默认为1,建议3-4(根据特定应用程序而定)。为了减少锁竞争和改善性能,从当前线程分区(thread-affini... 阅读全文