1、Spring Boot簡介
阿新 • • 發佈:2019-01-28
什麼是SpringBoot
Spring Boot是Spring社群釋出的一個開源專案,旨在幫助開發者快速並且更簡單的構建專案。大多數SpringBoot專案只需要很少的配置檔案。
SpringBoot特性
- 建立獨立的Spring專案
- 內建Tomcat和Jetty容器
- 提供一個starter POMs來簡化Maven配置
- 提供了一系列大型專案中常見的非功能性特性,如安全、指標,健康檢測、外部配置等
- 完全沒有程式碼生成和xml配置檔案
SpringBoot執行環境
Spring Boot最新版可以執行在Java6+的環境下,但是Spring官方建議使用Java8。
Servlet 容器
Name | Servlet Version | Java Version |
---|---|---|
Tomcat 8 | 3.1 | Java 7+ |
Tomcat 7 | 3.0 | Java 6+ |
Jetty 9 | 3.1 | Java 7+ |
Jetty 8 | 3.0 | Java 6+ |
Undertow 1.1 | 3.1 | Java 7+ |
SpringBoot支援哪些應用
使用SpringBoot可以快速建立普通Java專案和Web專案,以及其他專案。
Spring Boot application starters
Name | Description |
---|---|
spring-boot-starter |
The core Spring Boot starter, including auto-configuration support, logging and YAML. |
spring-boot-starter-actuator |
Production ready features to help you monitor and manage your application. |
spring-boot-starter-amqp |
Support for the “Advanced Message Queuing Protocol” via spring-rabbit. |
spring-boot-starter-aop |
Support for aspect-oriented programming including spring-aop and AspectJ. |
spring-boot-starter-artemis |
Support for “Java Message Service API” via Apache Artemis. |
spring-boot-starter-batch |
Support for “Spring Batch” including HSQLDB database. |
spring-boot-starter-cache |
Support for Spring’s Cache abstraction. |
spring-boot-starter-cloud-connectors |
Support for “Spring Cloud Connectors” which simplifies connecting to services in cloud platforms like Cloud Foundry and Heroku. |
spring-boot-starter-data-elasticsearch |
Support for the Elasticsearch search and analytics engine including spring-data-elasticsearch. |
spring-boot-starter-data-gemfire |
Support for the GemFire distributed data store including spring-data-gemfire. |
spring-boot-starter-data-jpa |
Support for the “Java Persistence API” including spring-data-jpa, spring-orm and Hibernate. |
spring-boot-starter-data-mongodb |
Support for the MongoDB NoSQL Database, including spring-data-mongodb. |
spring-boot-starter-data-redis |
Support for the REDIS key-value data store, including spring-data-redis. |
spring-boot-starter-data-rest |
Support for exposing Spring Data repositories over REST via spring-data-rest-webmvc. |
spring-boot-starter-data-solr |
Support for the Apache Solr search platform, including spring-data-solr. |
spring-boot-starter-freemarker |
Support for the FreeMarker templating engine. |
spring-boot-starter-groovy-templates |
Support for the Groovy templating engine. |
spring-boot-starter-hateoas |
Support for HATEOAS-based RESTful services via spring-hateoas. |
spring-boot-starter-hornetq |
Support for “Java Message Service API” via HornetQ. |
spring-boot-starter-integration |
Support for common spring-integration modules. |
spring-boot-starter-jdbc |
Support for JDBC databases. |
spring-boot-starter-jersey |
Support for the Jersey RESTful Web Services framework. |
spring-boot-starter-jta-atomikos |
Support for JTA distributed transactions via Atomikos. |
spring-boot-starter-jta-bitronix |
Support for JTA distributed transactions via Bitronix. |
spring-boot-starter-mail |
Support for javax.mail. |
spring-boot-starter-mobile |
Support for spring-mobile. |
spring-boot-starter-mustache |
Support for the Mustache templating engine. |
spring-boot-starter-security |
Support for spring-security. |
spring-boot-starter-social-facebook |
Support for spring-social-facebook. |
spring-boot-starter-social-linkedin |
Support for spring-social-linkedin. |
spring-boot-starter-social-twitter |
Support for spring-social-twitter. |
spring-boot-starter-test |
Support for common test dependencies, including JUnit, Hamcrest and Mockito along with the spring-testmodule. |
spring-boot-starter-thymeleaf |
Support for the Thymeleaf templating engine, including integration with Spring. |
spring-boot-starter-velocity |
Support for the Velocity templating engine. |
spring-boot-starter-web |
Support for full-stack web development, including Tomcat and spring-webmvc. |
spring-boot-starter-websocket |
Support for WebSocket development. |
spring-boot-starter-ws |
Support for Spring Web Services. |