Authored by henry

修改配置为开发测试环境配置

... ... @@ -188,12 +188,12 @@ public class SearchController {
* 将HttpServletRequest中被锁定的ParameterMap转化为普通的HashMap
* */
public static Map<String, String> transParamType(Map<String, Object> paramMap){
Map<String, String> rtnMap = new HashMap<String, String>();
Iterator<String> itKeys = paramMap.keySet().iterator();
while(itKeys.hasNext()){
String key = itKeys.next();
String val = ((String[])paramMap.get(key))[0];
rtnMap.put(key, val);
Map<String, String> rtnMap = new HashMap<String, String>();
Iterator<String> itKeys = paramMap.keySet().iterator();
while(itKeys.hasNext()){
String key = itKeys.next();
String val = ((String[])paramMap.get(key))[0];
rtnMap.put(key, val);
}
return rtnMap;
}
... ...
search.es.cluster.name=yohosearch
search.es.servers=192.168.10.63:9300 192.168.10.64:9300 192.168.10.65:9300
search.es.cluster.name=yohosearch_test
search.es.servers=192.168.102.209:9300
#search.es.cluster.name=yohosearch_online
#search.es.servers=123.57.172.205:9300 123.57.172.107:9300 123.57.172.201:9300
search.index.number_of_replicas=2
... ... @@ -29,8 +29,8 @@ redis.readonly.proxy.auth=
mq.server=192.168.10.109
mq.port=5672
mq.username=admin
mq.password=123456
mq.username=admin1
mq.password=123qwe
#mq.server=192.168.50.69
#mq.port=9646
#mq.username=yhb_mq
... ...
datasources:
yhb_search:
yhb_search_2016:
servers:
- 192.168.50.69:9980
- 192.168.50.69:9980
... ...
... ... @@ -7,8 +7,8 @@
<property name="yoho.search.service.env.webapphome" defaultValue="/home/dev/yoho-search-service/deploy" description="install path"/>
<property name="java.logs.home" defaultValue="/Data/logs" description="日志打印路径"/>
<property name="search.es.cluster.name" defaultValue="yohosearch" description="" />
<property name="search.es.servers" defaultValue="192.168.10.63:9300 192.168.10.64:9300 192.168.10.65:9300" description="" />
<property name="search.es.cluster.name" defaultValue="yohosearch_test" description="" />
<property name="search.es.servers" defaultValue="192.168.102.209:9300" description="" />
<property name="search.index.number_of_replicas" defaultValue="2" description="" />
<property name="search.index.refresh_interval" defaultValue="1" description="" />
<property name="search.index.translog.flush_threshold_ops" defaultValue="5000" description="" />
... ... @@ -23,8 +23,8 @@
<property name="mq.server" defaultValue="192.168.10.109" description="" />
<property name="mq.port" defaultValue="5672" description="" />
<property name="mq.username" defaultValue="admin" description="" />
<property name="mq.password" defaultValue="123456" description="" />
<property name="mq.username" defaultValue="admin1" description="" />
<property name="mq.password" defaultValue="123qwe" description="" />
<property name="mq.exchange" defaultValue="yoho_search" description="" />
<property name="is.do.rebuild.index" defaultValue="false" description="" />
... ... @@ -54,6 +54,7 @@
<property name="jdbc.mysql.yhbsearch.slave" defaultValue="192.168.102.219:3306" description="" />
<property name="jdbc.mysql.yhbsearch.username" defaultValue="yh_test" description="" />
<property name="jdbc.mysql.yhbsearch.password" defaultValue="9nm0icOwt6bMHjMusIfMLw==" description="" />
<property name="jdbc.mysql.yhbsearch.datasources" defaultValue="yhb_search_2016" description="" />
</group>
<script>
... ...
datasources:
yhb_search:
${jdbc.mysql.yhbsearch.datasources}:
servers:
- ${jdbc.mysql.yhbsearch.master}
- ${jdbc.mysql.yhbsearch.slave}
... ...