build maven spring boot run code example Example 1: maven spring boot run mvn spring-boot:run Example 2: run maven spring boot project command line ./mvnw spring-boot:run