`
lilo
  • 浏览: 10730 次
  • 性别: Icon_minigender_2
  • 来自: 杭州
社区版块
存档分类
最新评论

接口测试配置文件

阅读更多
建立测试工程后,webx3.0的框架下,需要建立的resource文件有:
auto-config.properties:该文件配置了一些外部的服务就是xml文件里以${变量}的形式引用的,都配置在这里,调用第三方的服务的版本和服务名字都配置在这里
beans.xml文件:基本上定义用什么框架,在spring起来时要加载这里配置的文件
<property name="locations">
           <value>classpath:auto-config.properties</value>
</property>
datasource.xml文件是配置数据源的格式:
<bean id="a_gen" class="com.hihi.itest.jdbc.SchemaDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url"value="jdbc:mysql://ip:端口/数据库名?characterEncoding=UTF-8" />
<property name="username" value="aaa" />
<property name="password" value="aaa" />
</bean>
<bean id="a_genTemplate" class="org.springframework.jdbc.core.simple.SimpleJdbcTemplate">
<constructor-arg ref="a_gen" />
</bean>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics