【接口自动化框架实践】3、applicationContext.xml及其相关配置(重点哦)
1、src/main/resources下新建applicationContext.xml文件
resources右键–new–xml configuration file–Spring config,命名为applicationContext.xml
默认生成如下文件
我们添加一些配置信息
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--注入配置信息,如环境配置-->
<bean id="configProperties"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<!--以上是配置注入类-->
<property name="fileEncoding" value="utf-8"/>