项目作者: stunstunstun

项目描述 :
Code based and real world examples of Spring Boot and shiny things. 😍
高级语言: Java
项目地址: git://github.com/stunstunstun/awesome-spring-boot.git
创建时间: 2015-07-08T09:35:46Z
项目社区:https://github.com/stunstunstun/awesome-spring-boot

开源协议:

下载


Awesome Spring Boot" class="reference-link"> Awesome Spring Boot

Awesome
Build Status
Wercker
Wercker
Wercker

A curated list of amazingly examples of Spring Boot, resources and shiny things.

Contents




- Tutorials
- DevOps
- Prerequisite
- Test
- Build
- Run
- Spring Boot Features


Tutorials

Afterwards Spring Boot works

Project Build Description
spring-boot-jdbc-example Gradle Integrating Spring Boot with JDBC
spring-boot-jpa-example Gradle Integrating Spring Boot with JPA
spring-boot-mybatis-example Gradle Integrating Spring Boot with myBatis
spring-boot-mybatis-multi-example Gradle Integrating Spring Boot with multiple datasources
spring-boot-mvc-example Gradle Integrating Spring Boot with Spring MVC

Download

  1. $ git clone https://github.com/stunstunstun/awesome-spring-boot.git

DevOps

Prerequisite

Your operating system must have the JDK installed and it’s recommended that you install the IDE to look up the source code.

Test

Check the test case with the @Test annotation.

  1. $ gradlew test

Build

Build the project and create executable jar and war files.

  1. $ gradlew assemble

It doesn’t work? You should check execution permission.

  1. $ chmod +x gradlew

Run

An example with spring-web-starter can be connected by Web Browser

  1. $ gradlew :spring-boot-mvc-example:bootRun
  1. GET http://localhost:8080/users

Spring Boot Features

Bootstrap By Spring Boot CLI

Install Spring Boot CLI

  1. $ brew tap pivotal/tap
  2. $ brew install springboot
  3. $ spring --version

Create Project

  1. $ spring init --build=gradle --java-version=1.8 --dependencies=data-jpa spring-boot-jpa-example

You can do it in yourself!

Spring Core

Spring Boot Test

Spring Data REST

Data Access

Logging

HTTP Client

Embedded Servlet Containers

Profiles

Actuator

Hotswapping

Deploy To AWS, Cloud Foundry

Spring Boot Book