配置文件说明
配置文件的解析与加载是用包github.com/tal-tech/xtools/confutil来进行解析的,默认加载路径为:以可执行文件的所在目录为相对起始位置
如:
./app-binmyexec/confconf.ini
那么配置文件的加载方式为:
//项目目录加载$ ./bin/myexec -c ../conf/conf.ini//绝对路径加载$ ./bin/myexec -c conf.ini -p $(pwd)/conf
配置连接信息
[Redis];redis 连接地址;key为连接别名 valeu为连接地址rediscon=192.168.0.1:6379[RedisConfig];注意,上面的rediscon即为连接的别名,此区域的配置规则是 "别名.属性";连接密码,未设置密码时,请注释该配置行;rediscon.password=;空闲连接超时时间(秒)rediscon.idletimeout=240;连接池最大值rediscon.poolsize=100;选择redis数据库rediscon.db=0
