Spring boot Study Notes (entry) and spring Study Notes

Source: Internet
Author: User
Tags spring initializr

Spring boot Study Notes (entry) and spring Study Notes

Introduction:

Spring Boot is a new framework provided by the Pivotal team. It is designed to simplify the initial setup and development process of new Spring applications. The framework uses a specific method for configuration, so that developers no longer need to define the configuration of the template. In my words, spring boot is actually not a new framework. It configures the usage of many frameworks by default, just as maven integrates all the jar packages, spring boot integrates all the frameworks (I don't know if this metaphor is appropriate ).
Advantages:

It is simple, fast, and convenient! What do we do when we need to build a spring web project?

1) Configure web. xml and load spring and spring mvc

2) Configure database connections and spring transactions

3) Configure to read the configuration file and enable Annotation

4) configure the log file

Deploy tomcat debugging after configuration is complete

Microservice is very popular nowadays. If I only need to send an email for this project, if my project only produces one point, I need to do it again!

But what if spring boot is used?

Very simple. I only need a few configurations to quickly and conveniently build a web project or a microservice!

Quick Start

Tools: intellij idea and maven build projects. How to install and configure maven is not described here. Idea needs to download the Enterprise Edition. The Community Edition does not support spring boot. The Enterprise Edition is free of charge for 30 days of a trial.

1. Select File => New => Project... in the menu bar. the create function window shown in is displayed. The Initial Service Url points to the Spring Initializr tool officially provided by Spring. Therefore, the project created here is actually implemented based on its Web tool.

2. Click Next. After a moment, we can see the project information window shown in. Here we can edit the project information we want to create. Here, Type can change the Type of the project we want to build, such as Maven, Gradle, and Language. You can select Java, Groovy, and Kotlin.

3. Click Next To go to the Spring Boot version and dependency management window. Here we pay attention to the fact that it not only contains various dependencies in Spring Boot Starter POMs, but also various dependencies of Spring Cloud. Here we select web and mybatis.

4. Click Next to go to the final details about the physical storage of the project. Finally, click Finish to build the project.

One is the spring boot web program. In IntellijSpring InitializrAlthough implemented based on the official Web, tools are used to call and directly build the results into our local file system, making the entire build process smoother, spring Boot/Cloud fans who have not yet experienced this function can try this different build method.

Summary

The above is the spring boot Study Notes (Getting Started) introduced by xiaobian. I hope it will be helpful to you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!

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.