yujian
2020-01-18 f4a0f2acc63d7785eab108419a4e16f5f688cb95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
    
    <bean name="inetAddressbean" class="java.net.InetAddress"></bean>    
    <bean name="httpHostbean" class="org.apache.http.HttpHost">
         <constructor-arg  ref="inetAddressbean"></constructor-arg>
         <constructor-arg  value="${elastic.host}" ></constructor-arg>
        <constructor-arg  value="${elastic.port}"></constructor-arg>
        <constructor-arg  value="${elastic.scheme}"></constructor-arg> 
    </bean>    
</beans>