SpringBoot-Learning
本項目內(nèi)容為Spring Boot教程程序樣例。
作者博客:http://blog.didispace.com
- Spring Boot系列博文:http://blog.didispace.com/categories/Spring-Boot/
- Spring Cloud系列博文:http://blog.didispace.com/tag/spring-cloud/
- Spring Cloud中文社區(qū):http://bbs.springcloud.com.cn/
如您覺得該項目對您有用错沃,歡迎點擊右上方的Star按鈕,給予支持R蛋恰!
如有問題舒萎,可聯(lián)系:didi@potatomato.club
樣例列表
快速入門
工程配置
- chapter2-1-1:配置文件詳解:自定義屬性臂寝、隨機數(shù)、多環(huán)境配置等
Web開發(fā)
- chapter3-1-1:構(gòu)建一個較為復(fù)雜的RESTful API以及單元測試
- chapter3-1-2:使用Thymeleaf模板引擎渲染web視圖
- chapter3-1-3:使用Freemarker模板引擎渲染web視圖
- chapter3-1-4:使用Velocity模板引擎渲染web視圖
- chapter3-1-5:使用Swagger2構(gòu)建RESTful API
- chapter3-1-6:統(tǒng)一異常處理
數(shù)據(jù)訪問
- chapter3-2-1:使用JdbcTemplate
- chapter3-2-2:使用Spring-data-jpa簡化數(shù)據(jù)訪問層(推薦)
- chapter3-2-3:多數(shù)據(jù)源配置(一):JdbcTemplate
- chapter3-2-4:多數(shù)據(jù)源配置(二):Spring-data-jpa
- chapter3-2-5:使用NoSQL數(shù)據(jù)庫(一):Redis
- chapter3-2-6:使用NoSQL數(shù)據(jù)庫(二):MongoDB
- chapter3-2-7:整合MyBatis
- chapter3-2-8:MyBatis注解配置詳解
事務(wù)管理
- chapter3-3-1:使用事務(wù)管理
- chapter3-3-2:[分布式事務(wù)(未完成)]
其他內(nèi)容
- chapter4-1-1:使用@Scheduled創(chuàng)建定時任務(wù)
- chapter4-1-2:使用@Async實現(xiàn)異步調(diào)用
日志管理
- chapter4-2-1:默認(rèn)日志的配置
- chapter4-2-2:使用log4j記錄日志
- chapter4-2-3:對log4j進(jìn)行多環(huán)境不同日志級別的控制
- chapter4-2-4:使用AOP統(tǒng)一處理Web請求日志
- chapter4-2-5:使用log4j記錄日志到MongoDB
安全管理
- chapter4-3-1:使用Spring Security
- chapter4-3-2:[使用Spring Session(未完成)]
緩存支持
- chapter4-4-1:注解配置與EhCache使用
- chapter4-4-2:使用Redis做集中式緩存
郵件發(fā)送
- chapter4-5-1:實現(xiàn)郵件發(fā)送:簡單郵件摊灭、附件郵件咆贬、嵌入資源的郵件、模板郵件
消息服務(wù)
- chapter5-1-1:[JMS(未完成)]
- chapter5-2-1:Spring Boot中使用RabbitMQ
Dubbo進(jìn)行服務(wù)治理
- chapter9-2-1:[Spring Boot中使用Dubbo進(jìn)行服務(wù)治理]
- chapter9-2-2:[Spring Boot與Dubbo中管理服務(wù)依賴]
Spring Cloud構(gòu)建微服務(wù)架構(gòu)
由于Spring Cloud偏宏觀架構(gòu)帚呼,Spring Boot偏微觀細(xì)節(jié)掏缎,內(nèi)容上越來越多,為了兩部分內(nèi)容不互相干擾煤杀,所以遷移Spring Cloud內(nèi)容到:SpringCloud-Learning項目眷蜈,該項目將不再更新Spring Cloud內(nèi)容,關(guān)注Spring Cloud內(nèi)容的請移步至SpringCloud-Learning項目
- chapter9-1-1:Spring Cloud構(gòu)建微服務(wù)架構(gòu)(一)服務(wù)注冊與發(fā)現(xiàn)
- chapter9-1-2:Spring Cloud構(gòu)建微服務(wù)架構(gòu)(二)服務(wù)消費者
- chapter9-1-3:Spring Cloud構(gòu)建微服務(wù)架構(gòu)(三)斷路器
- chapter9-1-4:Spring Cloud構(gòu)建微服務(wù)架構(gòu)(四)分布式配置中心
- chapter9-1-5:Spring Cloud構(gòu)建微服務(wù)架構(gòu)(五)服務(wù)網(wǎng)關(guān)
- chapter9-1-6:[Spring Cloud構(gòu)建微服務(wù)架構(gòu)(六)集群監(jiān)控]