springboot应用三板斧
1、加依赖
2、写注解
3、写配置
依赖spring官方提供的依赖
spring-boot-starter-xxx,
非官方依赖
xxx-spring-boot-starter
一般都是
spring-cloud-starter-{spring cloud子项目名称}-{模块名称}如
spring-cloud-starter-openfeign
spring-cloud-starter-alibaba-sentinel
如何查看是否springboot官方提供的依赖
13.5 Starters
spring-boot-starter
Core starter, including auto-configuration support, logging and YAML
Starter for JMS messaging using Apache ActiveMQ
Starter for using Spring AMQP and Rabbit MQ
Starter for aspect-oriented programming with Spring AOP and AspectJ
Starter for JMS messaging using Apache Artemis
Starter for using Spring Batch
Starter for using Spring Framework’s caching support
spring-boot-starter-cloud-connectors
Starter for using Spring Cloud Connectors which simplifies connecting to services in cloud platforms like Cloud Foundry and Heroku
spring-boot-starter-data-cassandra
Starter for using Cassandra distributed database and Spring Data Cassandra
spring-boot-starter-data-cassandra-reactive
Starter for using Cassandra distributed database and Spring Data Cassandra Reactive
spring-boot-starter-data-couchbase
Starter for using Couchbase document-oriented database and Spring Data Couchbase
spring-boot-starter-data-couchbase-reactive
Starter for using Couchbase document-oriented database and Spring Data Couchbase Reactive
spring-boot-starter-data-elasticsearch
Starter for using Elasticsearch search and analytics engine and Spring Data Elasticsearch
Starter for using Spring Data JDBC
Starter for using Spring Data JPA with Hibernate
Starter for using Spring Data LDAP
spring-boot-starter-data-mongodb
Starter for using MongoDB document-oriented database and Spring Data MongoDB
spring-boot-starter-data-mongodb-reactive
Starter for using MongoDB document-oriented database and Spring Data MongoDB Reactive
spring-boot-starter-data-neo4j
Starter for using Neo4j graph database and Spring Data Neo4j
spring-boot-starter-data-redis
Starter for using Redis key-value data store with Spring Data Redis and the Lettuce client
spring-boot-starter-data-redis-reactive
Starter for using Redis key-value data store with Spring Data Redis reactive and the Lettuce client
Starter for exposing Spring Data repositories over REST using Spring Data REST
Starter for using the Apache Solr search platform with Spring Data Solr
spring-boot-starter-freemarker
Starter for building MVC web applications using FreeMarker views
spring-boot-starter-groovy-templates
Starter for building MVC web applications using Groovy Templates views
Starter for building hypermedia-based RESTful web application with Spring MVC and Spring HATEOAS
spring-boot-starter-integration
Starter for using Spring Integration
Starter for using JDBC with the HikariCP connection pool
Starter for building RESTful web applications using JAX-RS and Jersey. An alternative to spring-boot-starter-web
Starter for using jOOQ to access SQL databases. An alternative to spring-boot-starter-data-jpa
or spring-boot-starter-jdbc
Starter for reading and writing json
spring-boot-starter-jta-atomikos
Starter for JTA transactions using Atomikos
spring-boot-starter-jta-bitronix
Starter for JTA transactions using Bitronix
Starter for using Java Mail and Spring Framework’s email sending support
Starter for building web applications using Mustache views
spring-boot-starter-oauth2-client
Starter for using Spring Security’s OAuth2/OpenID Connect client features
spring-boot-starter-oauth2-resource-server
Starter for using Spring Security’s OAuth2 resource server features
Starter for using the Quartz scheduler
Starter for using Spring Security
Starter for testing Spring Boot applications with libraries including JUnit, Hamcrest and Mockito
Starter for building MVC web applications using Thymeleaf views
spring-boot-starter-validation
Starter for using Java Bean Validation with Hibernate Validator
Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container
spring-boot-starter-web-services
Starter for using Spring Web Services
Starter for building WebFlux applications using Spring Framework’s Reactive Web support
Starter for building WebSocket applications using Spring Framework’s WebSocket support