hibernate配置文件数值,注入到 java类

hibernate.driverClassName=oracle.jdbc.driver.OracleDriver
hibernate.url=jdbc:oracle:thin:@192.168.100.160:1521:orcl
hibernate.username=house_new_real
hibernate.password=house_new_real
#hibernate.url=jdbc:oracle:thin:@192.168.10.77:1521:ahzf
#hibernate.username=ahgrzf
#hibernate.password=ahgrzf

hibernate.dialect=com.dxsoft.core.util.OracleXXgDialect
hibernate.show_sql=true
hibernate.format_sql=true
#hibernate.jdbc.batch_size=50
#hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
# hibernate.hbm2ddl.auto=update validate
hibernate.hbm2ddl.auto=update

#地市的ip
ip.ip3401=192.168.29.13
ip.ip3402=192.168.21.21
ip.ip3403=192.168.35.16
ip.ip3404=192.168.22.28
ip.ip3405=192.168.24.22
ip.ip3406=192.168.30.17
ip.ip3407=192.168.23.25
ip.ip3408=192.168.28.12
ip.ip3410=192.168.31.26
ip.ip3411=192.168.27.29
ip.ip3412=192.168.34.15
ip.ip3413=192.168.33.11
ip.ip3415=192.168.20.20
ip.ip3416=192.168.32.14
ip.ip3417=192.168.25.24
ip.ip3418=192.168.26.23

 

 

<bean id="timeJobServiceImpl" class="com.dxsoft.house.service.general.impl.TimeJobServiceImpl"  parent="abstractService">
        <property name="ip3401" value="${ip.ip3401}"/>
        <property name="ip3402" value="${ip.ip3402}"/>
        <property name="ip3403" value="${ip.ip3403}"/>
        <property name="ip3404" value="${ip.ip3404}"/>
        <property name="ip3405" value="${ip.ip3405}"/>
        <property name="ip3406" value="${ip.ip3406}"/>
        <property name="ip3407" value="${ip.ip3407}"/>
        <property name="ip3408" value="${ip.ip3408}"/>
        <property name="ip3410" value="${ip.ip3410}"/>
        <property name="ip3411" value="${ip.ip3411}"/>
        <property name="ip3412" value="${ip.ip3412}"/>
        <property name="ip3413" value="${ip.ip3413}"/>
        <property name="ip3415" value="${ip.ip3415}"/>
        <property name="ip3416" value="${ip.ip3416}"/>
        <property name="ip3417" value="${ip.ip3417}"/>
        <property name="ip3418" value="${ip.ip3418}"/>
    </bean>

 

 

转载于:https://my.oschina.net/maoguangdong/blog/707396

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值