Spring Boot經常使用腳手架,詳細列表

Spring Boot的特色是自動化配置依賴模塊,提供的一系列starter腳手架便於使用,充分體現了「開箱即用」和「約定優於配置」。
html

 

命名規則:git

Spring Boot提供的starter命名規則爲spring-boot-starter-*,*號是某類應用程序,好比spring-boot-starter-webgithub

自定義或者第三方提供的starter命名規則爲*-spring-boot-starter,*號是第三方項目名稱,好比mybatis-spring-boot-starterweb


經常使用Spring Boot Starterredis

名稱spring

功能mongodb

spring-boot-starterdocker

支持自動配置,YAML編程

spring-boot-starter-webapi

Web和REST接口開發,默認Web容器Tomcat,端口8080

spring-boot-starter-websocket

WebSocket長鏈接應用開發

spring-boot-starter-security

使用Spring Security安全訪問控制

spring-boot-starter-aop

引入AOP面向切面編程AspectJ

spring-boot-starter-cache

Spring caching緩存框架

spring-boot-starter-jdbc

JDBC 鏈接池

spring-boot-starter-data-jpa

JPA,默認Hibernate

spring-boot-starter-data-mongodb

使用MongoDB

spring-boot-starter-data-redis

使用Redis和Jedis客戶端

spring-boot-starter-data-solr

使用Apache Solr搜索服務

spring-boot-starter-data-elasticsearch

集成Elasticsearch

spring-boot-starter-activemq

使用Apache ActiveMQ消息隊列

spring-boot-starter-amqp

使用Spring AMQP、Rabbit MQ消息隊列

spring-boot-starter-quartz

引入定時任務調度

spring-boot-starter-mail

使用Java Mail、Spring email發送郵件

spring-boot-starter-logging

日誌,默認Logback

spring-boot-starter-test

引入JUnit, Mockito等測試工具

spring-boot-devtools

輔助工具,程序快速啓動

經常使用第三方腳手架:

名稱

功能

mybatis-spring-boot-starter    

引入MyBatis

druid-spring-boot-starter    

阿里Druid鏈接池

docker-api-spring-boot-starter    

Docker客戶端

 

Github代碼:https://github.com/spring-projects/spring-boot/tree/master/spring-boot-project/spring-boot-starters

參考文檔:https://blog.csdn.net/u014430366/article/details/53648139

官網文檔: https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#using-boot-starter

相關文章
相關標籤/搜索