需要引入开发人员的配置文件:
补记2019-05-2:这种配置不推荐,不利于项目后期的整体维护,而且开发人员自身水平不一,容易造成项目配置混乱
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <!-- bean definitions here --> <bean id="projectController" class="com.smartdot.iam.project.controller.ProjectController" init-method="init" destroy-method="destroy"> </bean> <!-- 多个人开发时,模块化配置,只需将人员的xml文件包含进来即可 --> <import resource="dataSource/applicationContext.xml"/> </beans>