想请问 图片中 前面有个 叶子形状的xml文件(除了applicationcontent.xml)是怎么新建出来的
文件内部已经有这样的DTD:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
这是最简化的,好像myeclipse2014的spring配置文件不是小叶子是一个xml文档的图标,配置文件写清楚,图标不重要的
myeclipse添加spring框架会给你自动生成这个配置文件,当然你也可以自己去新建,就是普通的xml文件而已,里面内容加上你所发出来的dtd就好了。
编辑器添加框架,工程自动就添加了这个文件