spring boot version for java 8 code example Example 1: run maven spring boot project command line ./mvnw spring-boot:run Example 2: gradle springboot run ./gradlew bootRun