IDEA Development Spring Boot application

Source: Internet
Author: User
Tags aop apache solr mongodb redis solr web services tomcat gemfire

What Spring boot is. Used to simplify the initial set-up and development process for new spring applications. The framework is configured in a specific way so that developers no longer need to define a boilerplate configuration.

The goal of Spring boot is not to provide new solutions for resolved problem domains, but to bring another development experience to the platform, simplifying the use of these technologies. Boot is an ideal choice for developers who are already familiar with the spring ecosystem, but for new spring technology, boot provides a more concise way to use these technologies.

When developing Web applications, especially restful Web services, if you include Spring-boot-starter-web dependencies, it provides you with an automated configuration to start embedded Tomcat containers

Development mode:

1. Development of micro-services: Embedded Tomcat

2. Configuration by default, the applied configuration can be defined using a Java property file named Application.properties and located under the applied classpath root directory. A better approach, however, is to use the YAML configuration, which provides both structured and nested configurations.

3. Pack Boot Application: Execute package under Maven, just execute MVN package command

4. Operation: 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.

Demo project directory structure is as follows


Development environment Set-up (IDEA14)

1. After checking out the project settings


2. Set the war package from the current project


3. Install Tomcat


4. Configure the project running environment


5. Configure Tomcat related parameters


6. Add Items


The Starter-poms currently supported

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 the "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 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 the "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 with the along module.

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.