spring 记录

spring
其中的been配置是在.xml文件当中,例如

<bean id="URLConf" class="com.gennlife.crf.configuration.URLConf">
        <property name="detailPatientURL" value="http://10.0.0.22:8111/FileService/CrfTrace/trace_detail"></property>
        <property name="searchCaseURL" value="http://10.0.0.31:8989/search-server/search"></property>
        <property name="readCsvFileURL" value="http://10.0.0.165:9900/FileService/PatientDetail/ReadCsvFile"></property>
        <property name="nlpIndexURL" value="http://10.0.0.31:8989/search-server/build_index/nlp_fields"></property>
        <property name="allIndexURL" value="http://10.0.0.31:8989/search-server/build_index/all_fields"></property>
        <property name="indexName" value="yantai_hospital_clinical_patients"/>
        <property name="ImageUpload" value="http://10.0.0.165:9900/FileService/image/"></property>
        <property name="FsImagePath" value="http://10.0.2.157:8111/FileService/image/"></property>
        <property name="imgCreateDate" value="http://10.0.2.157.125:8111/FileService/image/"></property>
    </bean>

自己新建的test.xml文件需要在applicationContext.xml文件中进行引用,

<import resource="test.xml"></import>

这里写图片描述

猜你喜欢

转载自blog.csdn.net/lazy_zzzzzz/article/details/79994381