ssm-原始方式框架整合

原始方式整合配置文件:

1.web.xml

①spring的监听器;

②springmvc的DispacherServlet;

③防乱码的filter。

2.applicationContext.xml

①组件扫描。

3.spring-mvc.xml

①组件扫描;

②mvc的注解驱动;

③内部资源视图解析器;

④开放静态资源的访问权限。

4.mybatisConfig.xml

①别名  typeAliases;

②环境(事务,数据源配置);

③加载映射配置文件

5.Mybatis的映射配置文件

①sql语句。

6.其它:log4j.xml

posted @ 2022-03-13 16:09  `安安安安安  阅读(29)  评论(0)    收藏  举报