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>

本文详细介绍了如何在Spring框架中通过XML文件配置Bean属性,包括多种HTTP请求URL的配置示例,如患者详情查询、病例搜索等,并展示了如何将自定义的配置文件引入到主配置文件中。
6045

被折叠的 条评论
为什么被折叠?



