a.了解Maven
参考Building Java Projects with Maven
b.了解git windows安装
c.了解具体模块,英文参考如下
spring-boot
The main library providing features that support the other parts of Spring Boot, these include:
- The
SpringApplication
class, providing static convenience methods that make it easy to write a stand-alone Spring Application. Its sole job is to create and refresh an appropriate SpringApplicationContext
- Embedded web applications with a choice of container (Tomcat or Jetty for now)
- First class externalized configuration support
- Convenience
ApplicationContext
initializers, including support for sensible logging defaults
spring-boot-autoconfigure
Spring Boot can configure large parts of common applications based on the content of their classpath. A single @EnableAutoConfiguration
annotation triggers auto-configuration of the Spring context.
Auto-configuration attempts to deduce which beans a user might need. For example, If HSQLDB
is on the classpath, and the user has not configured any database connections, then they probably want an in-memory database to be defined. Auto-configuration will always back away as the user starts to define their own beans.
See spring-boot-autoconfigure/README.md.
spring-boot-starters
Starters are a set of convenient dependency descriptors that you can include in your application. You get a one-stop-shop for all the Spring and related technology that you need without having to hunt through sample code and copy paste loads of dependency descriptors. For example, if you want to get started using Spring and JPA for database access just include the spring-boot-starter-data-jpa
dependency in your project, and you are good to go.
See spring-boot-starters/README.md.
spring-boot-cli
The Spring command line application compiles and runs Groovy source, making it super easy to write the absolute minimum of code to get an application running. Spring CLI can also watch files, automatically recompiling and restarting when they change.
See spring-boot-cli/README.md.
spring-boot-actuator
Spring Boot Actuator provides additional auto-configuration to decorate your application with features that make it instantly deployable and supportable in production. For instance if you are writing a JSON web service then it will provide a server, security, logging, externalized configuration, management endpoints, an audit abstraction, and more. If you want to switch off the built in features, or extend or replace them, it makes that really easy as well.
See spring-boot-actuator/README.md.
spring-boot-loader
Spring Boot Loader provides the secret sauce that allows you to build a single jar file that can be launched using java -jar
. Generally you will not need to use spring-boot-loader
directly, but instead work with the Gradle or Maven plugin.
See spring-boot-loader/README.md.
d.参考示例
Sample Projects
Getting Started Guides
- Building an Application with Spring Boot
- Building a RESTful Web Service
- Serving Web Content
- Converting a Spring Boot JAR Application to a WAR
e.运行案例
You can build this sample using Maven (>3) or Gradle (1.6).
With Maven:
$ mvn package
$ java -jar target/*.jar
The app prints a Hello message on the console.
With gradle:
$ gradle build
$ java -jar build/libs/*.jar