摘要: 1.spring-mvc.xml:注解驱动,component-scan扫描controller包,配置视图解析器。 2.spring-mvc.xml整合到applicatContext.xml。 3.web.xml:配置DispatcherServlet,配置乱码过滤 阅读全文
posted @ 2022-01-17 17:02 卡卡发 阅读(47) 评论(0) 推荐(0)
摘要: 1.spring-mapper.xml:配置datasource,sqlSessionFactory,配置mapper接口扫描包(目的是动态注入到spring)。 2.spring-service.xml:component-scan用注解来发,将所有的业务类注入到spring,配置声明式事务。 3.将两个配置文件整合到applicationContext.xml中 阅读全文
posted @ 2022-01-17 16:47 卡卡发 阅读(33) 评论(0) 推荐(0)