Skip to content
项目

stunstunstun/awesome-spring-boot

在 GitHub 查看

关于

Spring Boot 及其他精彩技术的代码示例和真实案例。😍

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Awesome Spring Boot

Awesome Build Status Wercker Wercker Wercker

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

Contents

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

$ 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.

$ gradlew test 

Build

Build the project and create executable jar and war files.

$ gradlew assemble 

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

$ chmod +x gradlew

Run

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

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

Spring Boot Features

Bootstrap By Spring Boot CLI

Install Spring Boot CLI

$ brew tap pivotal/tap
$ brew install springboot
$ spring --version

Create Project

$ 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

探索相关项目

加载中…