Spring Boot is a new framework provided by the Pivotal team. It is designed to simplify the initial construction and development process of new Spring applications. The following is an introduction to spring boot related knowledge through this article. Friends who need it can refer to it
1. What is SpringBoot
Spring Boot is a brand new product provided by the Pivotal team A framework designed to simplify the initial setup and development of new Spring applications. The framework uses a specific way to configure,
, so that developers no longer need to define boilerplate configurations. In this way, Spring Boot strives to become a leader in the booming field of rapid application development.
2.SpringBoot features
1). Create an independent Spring project
2).Built-in Tomcat and Jetty containers
3). Provide a starter POMs to simplify Maven configuration
4). Provide a series of non-functional features common in large projects, such assecurity, indicators, health detection, external configuration Wait
5). There is no code generation and xmlconfiguration file
3. SpringBoot running environment
The latest version of Spring Boot can run in a Java6+ environment, but Spring officially recommends using Java8.
4.Servlet Container
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 |
---|---|
|
Starter for building MVC web applications using Thymeleaf views |
|
Starter for using Couchbase document-oriented database and Spring Data Couchbase |
|
Starter for JMS messaging using Apache Artemis |
|
Starter for using Spring Web Services |
|
Starter for using Java Mail and Spring Framework's email sending support |
|
Starter for using Redis key-value data store with Spring Data Redis and the Jedis client |
|
Starter for using MongoDB document-oriented database and Spring Data MongoDB Reactive |
|
Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded Container |
|
Starter for JMS messaging using Apache ActiveMQ |
|
Starter for using Elasticsearch search and analytics engine and Spring Data Elasticsearch |
|
Starter for using Spring Integration |
|
Starter for testing Spring Boot applications with libraries including JUnit, Hamcrest and Mockito |
|
Starter for building WebFlux applications using Spring Framework's Reactive Web support |
|
Starter for using JDBC with the Tomcat JDBC connection pool |
|
Starter for building web applications using Spring Mobile |
|
Starter for using Java Bean Validation with hibernate Validator |
|
Starter for building hypermedia-based RESTful web application with Spring MVC and Spring HATEOAS |
|
Starter for building RESTful web applications using JAX-RS and Jersey. An alternative to |
|
Starter for using Neo4j graph database and Spring Data Neo4j |
|
Starter for using Spring Data LDAP |
|
Starter for building WebSocket applications using Spring Framework's WebSocket support |
|
Starter for aspect-oriented programming with Spring AOP and AspectJ |
|
Starter for using Spring AMQP and Rabbit MQ |
|
Starter for using Cassandra distributed database and Spring Data Cassandra |
|
Starter for using Spring Social Facebook |
|
Starter for JTA transactions using Atomikos |
|
Starter for using Spring Security |
|
Starter for building MVC web applications using Mustache views |
|
Starter for using Spring Data JPA with Hibernate |
|
Core starter, including auto-configuration support, logging and YAML |
|
Starter for building MVC web applications using Groovy Templates views |
|
Starter for building MVC web applications using FreeMarker views |
|
Starter for using Spring Batch |
|
Stater for using Spring Social LinkedIn |
|
Starter for using Spring Framework's caching support |
|
Starter for using the Apache Solr search platform with Spring Data Solr |
|
Starter for using MongoDB document-oriented database and Spring Data MongoDB |
|
Starter for using jOOQ to access SQL databases. An alternative to |
|
Spring Boot Narayana JTA Starter |
|
Starter for using Spring Cloud Connectors which simplifies connecting to services in cloud platforms like Cloud Foundry and Heroku |
|
Starter for JTA transactions using Bitronix |
|
Starter for using Spring Social Twitter |
|
Starter for exposing Spring Data repositories over REST using Spring Data REST |
Table 2》. Spring Boot production starters
Name | Description |
---|---|
|
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 |
---|---|
|
Starter for using Undertow as the embedded servlet container. An alternative to |
|
Starter for using Jetty as the embedded servlet container. An alternative to |
|
Starter for using Reactor Netty as the embedded reactive HTTP server. |
|
Starter for logging using Logback. Default logging starter |
|
Starter for using Tomcat as the embedded servlet container. Default servlet container starter used by |
##spring-boot-starter-log4j2 | Starter for using Log4j2 for logging. An alternative to spring-boot-starter-logging |
1.
Java free video tutorialComprehensive analysis of Java annotationsAlibaba Java Development ManualThe above is the detailed content of Detailed explanation of Spring Boot in java. For more information, please follow other related articles on the PHP Chinese website!

JVM handles operating system API differences through JavaNativeInterface (JNI) and Java standard library: 1. JNI allows Java code to call local code and directly interact with the operating system API. 2. The Java standard library provides a unified API, which is internally mapped to different operating system APIs to ensure that the code runs across platforms.

modularitydoesnotdirectlyaffectJava'splatformindependence.Java'splatformindependenceismaintainedbytheJVM,butmodularityinfluencesapplicationstructureandmanagement,indirectlyimpactingplatformindependence.1)Deploymentanddistributionbecomemoreefficientwi

BytecodeinJavaistheintermediaterepresentationthatenablesplatformindependence.1)Javacodeiscompiledintobytecodestoredin.classfiles.2)TheJVMinterpretsorcompilesthisbytecodeintomachinecodeatruntime,allowingthesamebytecodetorunonanydevicewithaJVM,thusfulf

JavaachievesplatformindependencethroughtheJavaVirtualMachine(JVM),whichexecutesbytecodeonanydevicewithaJVM.1)Javacodeiscompiledintobytecode.2)TheJVMinterpretsandexecutesthisbytecodeintomachine-specificinstructions,allowingthesamecodetorunondifferentp

Platform independence in JavaGUI development faces challenges, but can be dealt with by using Swing, JavaFX, unifying appearance, performance optimization, third-party libraries and cross-platform testing. JavaGUI development relies on AWT and Swing, which aims to provide cross-platform consistency, but the actual effect varies from operating system to operating system. Solutions include: 1) using Swing and JavaFX as GUI toolkits; 2) Unify the appearance through UIManager.setLookAndFeel(); 3) Optimize performance to suit different platforms; 4) using third-party libraries such as ApachePivot or SWT; 5) conduct cross-platform testing to ensure consistency.

Javadevelopmentisnotentirelyplatform-independentduetoseveralfactors.1)JVMvariationsaffectperformanceandbehavioracrossdifferentOS.2)NativelibrariesviaJNIintroduceplatform-specificissues.3)Filepathsandsystempropertiesdifferbetweenplatforms.4)GUIapplica

Java code will have performance differences when running on different platforms. 1) The implementation and optimization strategies of JVM are different, such as OracleJDK and OpenJDK. 2) The characteristics of the operating system, such as memory management and thread scheduling, will also affect performance. 3) Performance can be improved by selecting the appropriate JVM, adjusting JVM parameters and code optimization.

Java'splatformindependencehaslimitationsincludingperformanceoverhead,versioncompatibilityissues,challengeswithnativelibraryintegration,platform-specificfeatures,andJVMinstallation/maintenance.Thesefactorscomplicatethe"writeonce,runanywhere"


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
