Spring核心配置文件分析

1:spring的核心配置文件中的各种配置 。

Spring核心配置文件分析

文章插图
 
spring的核心配置文件的名字 叫做 ApplicationContext.xml , 后期也可以通过配置文件中的配置修改名称 , 在web.xml中进行如下配置:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring/applicationContext*.xml</param-value>
</context-param>
2:核心配置文件中关于dao层的配置 。(1):首先准备db.properties 配置文件 , 最简单的配置如下 。
jdbc.driver=com.MySQL.jdbc.Driver
jdbc.url=jdbc:mysql:


    推荐阅读