Code based and real world examples of Spring Boot and shiny things. 😍
A curated list of amazingly examples of Spring Boot, resources and shiny things.
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 |
$ git clone https://github.com/stunstunstun/awesome-spring-boot.git
Your operating system must have the JDK installed and it’s recommended that you install the IDE to look up the source code.
Check the test case with the @Test
annotation.
$ gradlew test
Build the project and create executable jar and war files.
$ gradlew assemble
It doesn’t work? You should check execution permission.
$ chmod +x gradlew
An example with spring-web-starter can be connected by Web Browser
$ gradlew :spring-boot-mvc-example:bootRun
GET http://localhost:8080/users
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