run spring boot with maven code example Example 1: spring boot run command mvn spring-boot:run Example 2: gradle springboot run ./gradlew bootRun