Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

LP1-3-MiniSSM

演示请下载视频查看

介绍

手写实现Spring+SpringMVC+Mybatis

  1. xml声明式
  2. 注解式

软件说明

  • 通过注解+反射,维护一个Map单例池,实现IOC
  • 通过resource数据库连接及扫描包路径将Mybatis XML统一转为Configuration对象,通过代理,拦截Mapper接口,转而执行封装好的SQL,最后通过泛型将查询结果返回。
  • 通过注解维护所有Controller Method,实现MethodHandler,从DispatcherServlet根据请求解析适配Method处理器,由Method反射执行返回结果,在Servlet中包装响应信息
  1. Spring: IOC 及@Transactional等
  2. SpringMVC:Handler及@RequestMapping等
  3. MyBatis:SqlSession及Configuration MappedStatement 、Proxy@Repository等

Comments ( 0 )

Sign in for post a comment

About

根据反射、注解、动态代理、XML解析,手动实现Spring+SpringMVC+Mybatis+权限认证。 包含IOC、单例、ORM、MVC、REST API、类事务管理,最终基本满足一个请求的后台开发流程 spread retract
Java and 2 more languages
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more