一、基础核心架包
二、配置配置文件
官方推荐配置文件名为:applicationContext.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.xsd">
<!--对象的创建-->
<!-- bean definitions here -->
<bean id="example" class="com.feicui.dao.ExampleImp"/>
</beans>