Spring环境搭建

来源:互联网 发布:最好企业网络投资理财 编辑:程序博客网 时间:2024/04/30 12:53

1.开发jar包

2.编写核心配置文件(application.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-2.5.xsd"></beans>

3.web.xml中配置(添加如下代码)

<listener>  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener>

这样基本的配置就完成了。当来然还要在核心配置稳文件中去添加许多内容,其中涉及许多的其他方面的知识,我们会在接下来的博客中继续讲解.

0 0