学习spring框架,发现idea里没有创建XML的选项,我用的是Education版本。但是这跟用什么版本没关系,可能是新下载下来的IDEA里面缺少模板。于是乎
按照上面的顺序进入file and code templates,自行创建spring xml的配置模板
给模板命名,extension改为xml,然后是写模板的内容,这个easy,spring 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
https://www.springframework.org/schema/beans/spring-beans.xsd">
</beans>
OK了,然后新建就可以看见了