What Spring boot is. To simplify the initial setup and development of new spring applications. The framework uses a specific approach to configuration, which eliminates the need for developers to define boilerplate configurations.
The goal of Spring boot is not to provide a new solution for the solved problem domain, but rather to bring another development experience to the platform, simplifying the use of these existing technologies. Boot is an ideal choice for developers who are already familiar with the spring ecosystem, but for newcomers with spring technology, boot provides a cleaner way to use these technologies.
When developing a Web application, especially a restful web service, if it contains spring-boot-starter-web dependencies, it will provide you with an automated configuration to start the embedded Tomcat container
Development mode:
1. Development microservices: Inline tomcat
2. Configuration by default, the app's configuration can be defined using the Java properties file, which is named Application.properties and is located in the application's classpath root directory. However, a better approach is to use YAML configuration, which provides a structured and nested configuration.
3. Pack the Boot app: Perform a package under MAVEN and simply execute the MVN packages command
4. Run: Java-jar Path/to/myproject.jar
The default inline tomcat for Spring boot does not support JSP, but usually we have JSP in our project, so we need to change it a little bit.
The Demo project directory structure is as follows
Development environment Construction (IDEA14)
1. After checking out the project settings
2. Set up the war package from the current project
3. Install Tomcat
4. Configure the project Run environment
5. Configuring Tomcat-related parameters
6. Add a Project
Currently supported by Starter-poms
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 He Roku. |
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-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-redis |
Support for the REDIS Key-value data store, including Spring-redis. |
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-test module. |
Spring-boot-starter-thymeleaf |
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. |
|