{"id":13524912,"url":"https://github.com/timebusker/spring-boot","last_synced_at":"2025-04-01T04:30:31.121Z","repository":{"id":40523877,"uuid":"88159866","full_name":"timebusker/spring-boot","owner":"timebusker","description":"spring-boot 项目实践总结","archived":false,"fork":false,"pushed_at":"2022-10-12T19:52:30.000Z","size":12173,"stargazers_count":1268,"open_issues_count":13,"forks_count":465,"subscribers_count":98,"default_branch":"master","last_synced_at":"2024-08-02T06:17:10.487Z","etag":null,"topics":["aop","async","boot","cache","jpa","logs","mybatis","redis","schedule","security","spring","spring-boot","swagger"],"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/timebusker.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":"2017-04-13T11:54:57.000Z","updated_at":"2024-07-29T15:02:36.000Z","dependencies_parsed_at":"2023-01-19T22:15:58.613Z","dependency_job_id":null,"html_url":"https://github.com/timebusker/spring-boot","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/timebusker%2Fspring-boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timebusker%2Fspring-boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timebusker%2Fspring-boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timebusker%2Fspring-boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timebusker","download_url":"https://codeload.github.com/timebusker/spring-boot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222698190,"owners_count":17024877,"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","async","boot","cache","jpa","logs","mybatis","redis","schedule","security","spring","spring-boot","swagger"],"created_at":"2024-08-01T06:01:14.527Z","updated_at":"2024-11-02T09:30:36.734Z","avatar_url":"https://github.com/timebusker.png","language":"Java","readme":"## Spring Boot\n## [我的blog地址：https://www.timebusker.top/，持续更新.....](https://timebusker.github.io/)\n\n-----------------\n\n\u003ch2 align=\"center\"\u003e:heart::heart::heart:如果觉得我的文章或者代码对您有帮助,可以请我喝杯咖啡哦:heart::heart::heart:\u003c/h2\u003e\n\u003cdiv  align=\"center\"\u003e    \n  \u003cimg src=\"https://raw.githubusercontent.com/timebusker/timebusker.github.io/master/mine/wxpay.png?raw=true\" width = \"200\" height = \"200\" alt=\"WXPAY\" align=center /\u003e\n  \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003cimg src=\"https://raw.githubusercontent.com/timebusker/timebusker.github.io/master/mine/alipay.png?raw=true\" width = \"200\" height = \"200\" alt=\"ALIPAY\" align=center /\u003e\n\u003c/div\u003e  \n\u003ch2 align=\"center\"\u003e:smile::smile::smile:您的支持将鼓励我继续创作...谢谢!:smile::smile::smile:\u003c/h2\u003e\n\n-----------------\n\n\nSpring Boot是由Pivotal团队提供的全新框架，其设计目的是用来简化新Spring应用的初始搭建以及开发过程。\n该框架使用了特定的方式来进行配置，从而使开发人员不再需要定义样板化的配置。通过这种方式，  \nSpring Boot致力于在蓬勃发展的快速应用开发领域（rapid application development）成为领导者。  \n\nSpring Boot 项目旨在简化创建产品级的 Spring 应用和服务。你可通过它来选择不同的 Spring 平台。\n可创建独立的 Java 应用和 Web 应用，同时提供了命令行工具来允许 'spring scripts'。  \n下图显示 Spring Boot 在 Spring 生态中的位置：  \n\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\n![image](https://github.com/timebusker/spring-boot/raw/master/static/logo.png?raw=true)\n\n该项目主要的目的是：\n\n+ 为 Spring 的开发提供了更快更广泛的快速上手\n\n+ 使用默认方式实现快速开发\n\n+ 提供大多数项目所需的非功能特性，诸如：嵌入式服务器、安全、心跳检查、外部配置等\n\n### 模块列表\n----\n#### 第一个模块：[....................................入门程序](https://github.com/timebusker/spring-boot/tree/master/spring-boot-1-QuickStart/)\n\n#### 第二个模块：[....................................完美支持RESTful API](https://github.com/timebusker/spring-boot/tree/master/spring-boot-2-RESTful/)\n\n#### 第三个模块：[....................................整合多个日志框架：Log4j、Log4j2、Logback](https://github.com/timebusker/spring-boot/tree/master/spring-boot-3-logs/)\n\n#### 第四个模块：[....................................使用定时任务](https://github.com/timebusker/spring-boot/tree/master/spring-boot-4-Scheduled/)\n\n#### 第五个模块：[....................................使用@Async实现异步调用](https://github.com/timebusker/spring-boot/tree/master/spring-boot-5-Async/)\n\n#### 第六个模块：[....................................统一异常捕获处理](https://github.com/timebusker/spring-boot/tree/master/spring-boot-6-GlobalException/)\n\n#### 第七个模块：[....................................集成Ehcache缓存框架](https://github.com/timebusker/spring-boot/tree/master/spring-boot-7-EhCache/)\n\n#### 第八个模块：[....................................集成AOP面向切面编程](https://github.com/timebusker/spring-boot/tree/master/spring-boot-8-AOP/)\n\n#### 第九个模块：[....................................集成JavaMailSender](https://github.com/timebusker/spring-boot/tree/master/spring-boot-9-JavaMailSender/)\n\n#### 第十个模块：[....................................使用spring-data持久层](https://github.com/timebusker/spring-boot/tree/master/spring-boot-10-SpringData/)\n\n#### 第十一个模块：[................................集成SpringSecurity安全框架](https://github.com/timebusker/spring-boot/tree/master/spring-boot-11-SpringSecurity/)\n\n#### 第十二个模块：[................................集成Swagger2构建强大的RESTful API](https://github.com/timebusker/spring-boot/tree/master/spring-boot-12-Swagger2/)\n\n#### 第十三个模块：[................................集成MyBatis持久层框架](https://github.com/timebusker/spring-boot/tree/master/spring-boot-13-MyBatis/)\n\n#### 第十四个模块：[................................使用spring JdbcTemplate持久层框架](https://github.com/timebusker/spring-boot/tree/spring-boot-14-JdbcTemplate/)\n\n#### 第十五个模块：[................................集成Redis中间件项目实践](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/)\n\n#### 第十六个模块：[................................使用Transcation保证数据一致性](https://github.com/timebusker/spring-boot/tree/master/spring-boot-16-Transcation/)\n\n#### 第十七个模块：[................................应用的健康监控](https://github.com/timebusker/spring-boot/tree/master/spring-boot-17-monitor/)\n\n#### 第十八个模块：[................................消息队列实践](https://github.com/timebusker/spring-boot/tree/master/spring-boot-18-MQ/)\n\n#### 第十九个模块：[................................Spring Boot自定义Starter](https://github.com/timebusker/spring-boot/tree/master/spring-boot-19-Definition-Starter/)\n\n#### 第二十个模块：[................................Spring Boot结合Freemaker使用](https://github.com/timebusker/spring-boot/tree/master/spring-boot-20-Freemarker/)\n\n#### 第二十一个模块：[................................Spring Boot多数据源配置使用原理](https://github.com/timebusker/spring-boot/tree/master/spring-boot-21-MultiDataSource/)\n\n#### 第二十二个模块：[................................Spring Boot基于Vue快速搭建Web管理系统](https://github.com/timebusker/spring-boot/tree/master/spring-boot-22-FarstPlus/)\n\n#### 第二十三个模块：[................................Spring Boot多种方式连接MongoDB操作](https://github.com/timebusker/spring-boot/tree/master/spring-boot-23-MongoDB/)\n\n----  \n\n### 关于Spring Boot模板引擎   \n- 虽然现在很多开发，都采用了前后端完全分离的模式，即后端只提供数据接口，前端通过AJAX请求获取数据，完全不需要用的模板引擎。\n这种方式的优点在于前后端完全分离，并且随着近几年前端工程化工具和MVC框架的完善，使得这种模式的维护成本相对来说也更加低一点。\n但是这种模式不利于SEO，并且在性能上也会稍微差一点，还有一些场景，使用模板引擎会更方便，比如说邮件模板。   \n\n- 总体来讲，Spring boot对thymeleaf和Freemaker支持比较友好，配置相对也简单一点，Spring Boot不建议使用JSP，因为在使用嵌入式servlet容器时，有一些使用限制。\n在实际的开发中，大多也以这两种模板引擎为主，很少有用jsp的，jsp现在可能更多是在实验或者学习阶段使用。   \n\n![image](https://github.com/timebusker/spring-boot/raw/master/static/111111.png?raw=true)\n[性能对比测试](https://github.com/jreijn/spring-comparing-template-engines)\n","funding_links":[],"categories":["开源"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimebusker%2Fspring-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimebusker%2Fspring-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimebusker%2Fspring-boot/lists"}