1.src下创建applicationContext.xml文件,
2.写一个<beans></beans>元素
3,转到design视图,右键->edit namespace
4.然后add,无脑导入一个xsi
5.然后add,specify new namespace
6.从配好的xml catalog选 四个xsd的位置(aop,tx,context,bean),前缀,namespace name,bean没有前缀,名字空间为地址的前段
如下
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd ">
</beans>