{"id":19940841,"url":"https://github.com/brianway/spring-learning","last_synced_at":"2025-04-06T09:08:12.117Z","repository":{"id":109048312,"uuid":"58376668","full_name":"brianway/spring-learning","owner":"brianway","description":"Spring 学习笔记，通过例子展示和剖析实现机制","archived":false,"fork":false,"pushed_at":"2016-08-29T12:02:20.000Z","size":2094,"stargazers_count":395,"open_issues_count":0,"forks_count":211,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-03-30T07:12:14.265Z","etag":null,"topics":["aop","ioc","spring"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-09T12:58:37.000Z","updated_at":"2025-01-22T10:26:47.000Z","dependencies_parsed_at":"2023-05-19T23:00:48.612Z","dependency_job_id":null,"html_url":"https://github.com/brianway/spring-learning","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"4ad9e15391357c146f8e865b784b67d6aae46093"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianway%2Fspring-learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianway%2Fspring-learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianway%2Fspring-learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianway%2Fspring-learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianway","download_url":"https://codeload.github.com/brianway/spring-learning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457801,"owners_count":20941906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aop","ioc","spring"],"created_at":"2024-11-13T00:07:09.622Z","updated_at":"2025-04-06T09:08:12.091Z","avatar_url":"https://github.com/brianway.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring learning note(spring 学习笔记)\n\n本项目对 spring 的实现机制通过例子进行展示和剖析,并附上部分源码的分析说明。\n\n更详细的工程实用例子可以参考我的另一个仓库 [springmvc-mybatis-learning](https://github.com/brianway/springmvc-mybatis-learning)\n\n**如果觉得不错，请先在这个仓库上点个 star 吧**，这也是对我的肯定和鼓励，谢谢了。\n\n不定时进行调整和补充，需要关注更新的请 Watch、Star、Fork\n\n\n-----\n\n## 仓库目录\n\n- [spring-helloworld](/spring-helloworld):一个简单的用户登录小例子,涉及 mvc 和 数据库读写\n- [spring-ioc](/spring-ioc):一些 ioc 的小例子,涉及生命周期,注入,bean 的配置等等\n- [spring-aop](/spring-aop):一些 aop 的小例子,涉及各种切点知识,动态代理(JDK,CGLib),`@AspectJ`, LTW等等\n- [spring-mvc](/spring-nvc):一些 mvc 的小例子,涉及注解驱动控制器,数据绑定,视图和视图解析器,本地化解析,上传文件,静态资源处理等\n\n\n-----\t\n\n\n## 安装和使用\n\n环境准备:\n\n- jdk 1.8+\n- intellij IDEA 15.0.2+\n- mysql 5.1+\n- maven 3.3+\n- tomcat 8+\n\n\n数据库导入:\n\n- [spring-helloworld](/spring-helloworld) 模块中默认的数据库名为 `sampledb`\n- 导入 [spring-helloworld/src/main/resources](/spring-helloworld/src/main/resources/) 中的 [helloword.sql](/spring-helloworld/src/main/resources/helloworld.sql) 添加数据表和测试数据\n\n\n在 IDE 中添加 tomcat 容器:\n\n- ToolBar -\u003e 运行按钮旁边的下拉 -\u003e \"Edit Configurations\" -\u003e \"+\" -\u003e \"Tomcat Server\" 选 local,[如图所示](http://7xph6d.com1.z0.glb.clouddn.com/IDEA_web-%E6%B7%BB%E5%8A%A0tomcat-01.png)\n- 如果是第一次添加,还需要配置 tomcat 的路径,[如图所示](http://7xph6d.com1.z0.glb.clouddn.com/IDEA_web-%E6%B7%BB%E5%8A%A0tomcat-02.png)\n- [spring-helloworld](/spring-helloworld) 和 [spring-mvc](/spring-nvc) 模块各自需要添加一个 tomcat 容器\n\n\n## TODO\n\n计划逐步完善这个仓库，扩充并实现下面的功能。\n\n* [x] 入门小例子，spring-helloworld\n* [x] IoC\n* [x] AOP\n* [x] spring MVC\n* [ ] 整理部分源码分析,形成博客\n\n\t\n\n-----\n\n# 联系作者\n\n- [Brian's Personal Website](http://brianway.github.io/)\n- [CSDN](http://blog.csdn.net/h3243212/)\n- [oschina](http://my.oschina.net/brianway)\n\n\n-----\n\n# Lisence\n\nLisenced under [Apache 2.0 lisence](http://opensource.org/licenses/Apache-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianway%2Fspring-learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianway%2Fspring-learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianway%2Fspring-learning/lists"}