什么是SpringBoot

来源:互联网 发布:浩方提示网络传输错误 编辑:程序博客网 时间:2024/06/05 17:55

Spring Boot是Spring社区发布的一个开源项目,旨在帮助开发者快速并且更简单的构建项目。大多数SpringBoot项目只需要很少的配置文件。

SpringBoot特性

  • 创建独立的Spring项目
  • 内置Tomcat和Jetty容器
  • 提供一个starter POMs来简化Maven配置
  • 提供了一系列大型项目中常见的非功能性特性,如安全、指标,健康检测、外部配置等
  • 完全没有代码生成和xml配置文件

SpringBoot运行环境

Spring Boot最新版可以运行在Java6+的环境下,但是Spring官方建议使用Java8。

Servlet 容器

NameServlet VersionJava VersionTomcat 83.1Java 7+Tomcat 73.0Java 6+Jetty 93.1Java 7+Jetty 83.0Java 6+Undertow 1.13.1Java 7+

SpringBoot支持哪些应用

使用SpringBoot可以快速创建普通Java项目和Web项目,以及其他项目。

Spring Boot application starters

NameDescriptionspring-boot-starterThe core Spring Boot starter, including auto-configuration support, logging and YAML.spring-boot-starter-actuatorProduction ready features to help you monitor and manage your application.spring-boot-starter-amqpSupport for the “Advanced Message Queuing Protocol” via spring-rabbit.spring-boot-starter-aopSupport for aspect-oriented programming including spring-aop and AspectJ.spring-boot-starter-artemisSupport for “Java Message Service API” via Apache Artemis.spring-boot-starter-batchSupport for “Spring Batch” including HSQLDB database.spring-boot-starter-cacheSupport for Spring’s Cache abstraction.spring-boot-starter-cloud-connectorsSupport for “Spring Cloud Connectors” which simplifies connecting to services in cloud platforms like Cloud Foundry and Heroku.spring-boot-starter-data-elasticsearchSupport for the Elasticsearch search and analytics engine including spring-data-elasticsearch.spring-boot-starter-data-gemfireSupport for the GemFire distributed data store including spring-data-gemfire.spring-boot-starter-data-jpaSupport for the “Java Persistence API” including spring-data-jpa, spring-orm and Hibernate.spring-boot-starter-data-mongodbSupport for the MongoDB NoSQL Database, including spring-data-mongodb.spring-boot-starter-data-redisSupport for the REDIS key-value data store, including spring-data-redis.spring-boot-starter-data-restSupport for exposing Spring Data repositories over REST via spring-data-rest-webmvc.spring-boot-starter-data-solrSupport for the Apache Solr search platform, including spring-data-solr.spring-boot-starter-freemarkerSupport for the FreeMarker templating engine.spring-boot-starter-groovy-templatesSupport for the Groovy templating engine.spring-boot-starter-hateoasSupport for HATEOAS-based RESTful services via spring-hateoas.spring-boot-starter-hornetqSupport for “Java Message Service API” via HornetQ.spring-boot-starter-integrationSupport for common spring-integration modules.spring-boot-starter-jdbcSupport for JDBC databases.spring-boot-starter-jerseySupport for the Jersey RESTful Web Services framework.spring-boot-starter-jta-atomikosSupport for JTA distributed transactions via Atomikos.spring-boot-starter-jta-bitronixSupport for JTA distributed transactions via Bitronix.spring-boot-starter-mailSupport for javax.mail.spring-boot-starter-mobileSupport for spring-mobile.spring-boot-starter-mustacheSupport for the Mustache templating engine.spring-boot-starter-securitySupport for spring-security.spring-boot-starter-social-facebookSupport for spring-social-facebook.spring-boot-starter-social-linkedinSupport for spring-social-linkedin.spring-boot-starter-social-twitterSupport for spring-social-twitter.spring-boot-starter-testSupport for common test dependencies, including JUnit, Hamcrest and Mockito along with the spring-testmodule.spring-boot-starter-thymeleafSupport for the Thymeleaf templating engine, including integration with Spring.spring-boot-starter-velocitySupport for the Velocity templating engine.spring-boot-starter-webSupport for full-stack web development, including Tomcat and spring-webmvc.spring-boot-starter-websocketSupport for WebSocket development.spring-boot-starter-wsSupport for Spring Web Services.
0 0