欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Spring Boot 简介(入门篇)

程序员文章站 2024-02-27 13:02:51
1.什么是springboot spring boot是由pivotal团队提供的全新框架,其设计目的是用来简化新spring应用的初始搭建以及开发过程。该框架使用了特定...

1.什么是springboot

spring boot是由pivotal团队提供的全新框架,其设计目的是用来简化新spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,

从而使开发人员不再需要定义样板化的配置。通过这种方式,spring boot致力于在蓬勃发展的快速应用开发领域(rapid application development)成为领导者。

2.springboot特性

1).创建独立的spring项目

2).内置tomcat和jetty容器

3).提供一个starter poms来简化maven配置

4).提供了一系列大型项目中常见的非功能性特性,如安全、指标,健康检测、外部配置等

5).完全没有代码生成和xml配置文件

3.springboot运行环境

spring boot最新版可以运行在java6+的环境下,但是spring官方建议使用java8。

4.servlet 容器

name servlet version

tomcat 8.5

3.1

jetty 9.4

3.1

undertow 1.3

3.1

5.springboot支持哪些应用

table 1》. spring boot application starters

name description

spring-boot-starter-thymeleaf

starter for building mvc web applications using thymeleaf views

spring-boot-starter-data-couchbase

starter for using couchbase document-oriented database and spring data couchbase

spring-boot-starter-artemis

starter for jms messaging using apache artemis

spring-boot-starter-web-services

starter for using spring web services

spring-boot-starter-mail

starter for using java mail and spring framework's email sending support

spring-boot-starter-data-redis

starter for using redis key-value data store with spring data redis and the jedis client

spring-boot-starter-data-mongodb-reactive

starter for using mongodb document-oriented database and spring data mongodb reactive

spring-boot-starter-web

starter for building web, including restful, applications using spring mvc. uses tomcat as the default embedded container

spring-boot-starter-activemq

starter for jms messaging using apache activemq

spring-boot-starter-data-elasticsearch

starter for using elasticsearch search and analytics engine and spring data elasticsearch

spring-boot-starter-integration

starter for using spring integration

spring-boot-starter-test

starter for testing spring boot applications with libraries including junit, hamcrest and mockito

spring-boot-starter-webflux

starter for building webflux applications using spring framework's reactive web support

spring-boot-starter-jdbc

starter for using jdbc with the tomcat jdbc connection pool

spring-boot-starter-mobile

starter for building web applications using spring mobile

spring-boot-starter-validation

starter for using java bean validation with hibernate validator

spring-boot-starter-hateoas

starter for building hypermedia-based restful web application with spring mvc and spring hateoas

spring-boot-starter-jersey

starter for building restful web applications using jax-rs and jersey. an alternative to spring-boot-starter-web

spring-boot-starter-data-neo4j

starter for using neo4j graph database and spring data neo4j

spring-boot-starter-data-ldap

starter for using spring data ldap

spring-boot-starter-websocket

starter for building websocket applications using spring framework's websocket support

spring-boot-starter-aop

starter for aspect-oriented programming with spring aop and aspectj

spring-boot-starter-amqp

starter for using spring amqp and rabbit mq

spring-boot-starter-data-cassandra

starter for using cassandra distributed database and spring data cassandra

spring-boot-starter-social-facebook

starter for using spring social facebook

spring-boot-starter-jta-atomikos

starter for jta transactions using atomikos

spring-boot-starter-security

starter for using spring security

spring-boot-starter-mustache

starter for building mvc web applications using mustache views

spring-boot-starter-data-jpa

starter for using spring data jpa with hibernate

spring-boot-starter

core starter, including auto-configuration support, logging and yaml

spring-boot-starter-groovy-templates

starter for building mvc web applications using groovy templates views

spring-boot-starter-freemarker

starter for building mvc web applications using freemarker views

spring-boot-starter-batch

starter for using spring batch

spring-boot-starter-social-linkedin

stater for using spring social linkedin

spring-boot-starter-cache

starter for using spring framework's caching support

spring-boot-starter-data-solr

starter for using the apache solr search platform with spring data solr

spring-boot-starter-data-mongodb

starter for using mongodb document-oriented database and spring data mongodb

spring-boot-starter-jooq

starter for using jooq to access sql databases. an alternative to spring-boot-starter-data-jpa or spring-boot-starter-jdbc

spring-boot-starter-jta-narayana

spring boot narayana jta starter

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-jta-bitronix

starter for jta transactions using bitronix

spring-boot-starter-social-twitter

starter for using spring social twitter

spring-boot-starter-data-rest

starter for exposing spring data repositories over rest using spring data rest

table 2》. spring boot production starters

name description

spring-boot-starter-actuator

starter for using spring boot's actuator which provides production ready features to help you monitor and manage your application

table 3》. spring boot technical starters

name description

spring-boot-starter-undertow

starter for using undertow as the embedded servlet container. an alternative to spring-boot-starter-tomcat

spring-boot-starter-jetty

starter for using jetty as the embedded servlet container. an alternative to spring-boot-starter-tomcat

spring-boot-starter-reactor-netty

starter for using reactor netty as the embedded reactive http server.

spring-boot-starter-logging

starter for logging using logback. default logging starter

spring-boot-starter-tomcat

starter for using tomcat as the embedded servlet container. default servlet container starter used by spring-boot-starter-web

spring-boot-starter-log4j2

starter for using log4j2 for logging. an alternative to spring-boot-starter-logging

以上所述是小编给大家介绍的spring boot 简介(入门篇),希望对大家有所帮助