Java之旅之第一个Java项目[Sping+ Spring MVC + MyBatis] org.springframework.web相关源码

在web.xml里面有一句,因此我们就从org.springframework.web入手去看下相关源码

代码地址:https://github.com/spring-projects/spring-framework

在org.springframework.web.context.ContextLoader.java中:

会加载对应的xml配置文件等。

通过mybatis-spring加载mybatis , org.mybatis.spring属于mybatis-spring包 对应的代码地址:https://github.com/mybatis/spring

通过org.mybatis.spring.SqlSessionFactoryBean加载SqlSessionFactory

mybatis的详细介绍:http://www.mybatis.org/mybatis-3/zh/getting-started.html

原文地址:https://www.cnblogs.com/Ferrari/p/8275054.html