{"id":19982122,"url":"https://github.com/jinshengli/learn-spring","last_synced_at":"2025-08-21T14:05:32.663Z","repository":{"id":39927740,"uuid":"271999242","full_name":"jinshengli/learn-spring","owner":"jinshengli","description":"spring 的基础总结","archived":false,"fork":false,"pushed_at":"2022-12-10T06:01:09.000Z","size":73,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T10:47:41.431Z","etag":null,"topics":["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/jinshengli.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}},"created_at":"2020-06-13T11:53:41.000Z","updated_at":"2021-08-26T12:04:57.000Z","dependencies_parsed_at":"2023-01-26T07:16:46.745Z","dependency_job_id":null,"html_url":"https://github.com/jinshengli/learn-spring","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinshengli%2Flearn-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinshengli%2Flearn-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinshengli%2Flearn-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinshengli%2Flearn-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinshengli","download_url":"https://codeload.github.com/jinshengli/learn-spring/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241418361,"owners_count":19959736,"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":["spring"],"created_at":"2024-11-13T04:09:19.392Z","updated_at":"2025-03-01T20:11:07.020Z","avatar_url":"https://github.com/jinshengli.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### spring\n\n\n#### spring ioc\n\n创建容器\n    \n    String config = \"beans.xml\";\n    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config);\n    \n\n#### spring xml-DI\n\n属性赋值：\n\n1. set注入注入\n\n        简单类型\n            \u003cproperty name=\"\" value=\"\"/\u003e\n        引用类型\n            \u003cproperty name=\"\" ref=\"xxid\"/\u003e\n        \n    \n2. 构造注入\n\n        \n\n3. 引用类型自动注入\n\n\n4. 多配置文件。\n\n\n\n#### spring-annotation-DI\n\n1. 声明组件扫描器\n2. 使用组件声明spring bean\n3. @Value简单类型注入\n4. @AutoWired引用类型注入\n5. @Resource同上，默认模式不太一样\n\n\n#### spring-aop\n\n使用aspect的aop注解实现aop功能\n\n1. 引入spring-aspect依赖\n2. 开启自动代理生成器\n3. 定义切面类\n4. 将切面类交给spring\n\n\n#### spring-mybatis\n\nspring整合mybatis。 基本思路是由spring创建和维护mybatis\n中的一些必要对象。比如SqlSessionFactory, Dao动态代理对象。\n\n\n\n#### spring-transaction\n\n使用spring事务。\n\n\n#### spring-web\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinshengli%2Flearn-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinshengli%2Flearn-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinshengli%2Flearn-spring/lists"}