Skip to content

Spring Shell 2.0 with Spring Boot 2.0 Examples with Tests

Notifications You must be signed in to change notification settings

indrabasak/spring-shell-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Spring Shell 2 and Spring Boot 2 Examples with Tests

Spring Shell 2.0.0 with Spring Boot 2.0.0 examples along with unit and integration tests.

Build

Execute the following command from the parent directory to build the jar file:

mvn clean install

Run

From the parent directory, executte the following coommand to start the application:

java -jar target/spring-shell-example-1.0.0.jar

You should notice the application starting up,

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::             (v2.0.0.M5)

2017-10-17 16:11:18.065  INFO 21210 --- [           main] com.basaki.Application                   : Starting Application on jdoe-001 with PID 21210 (/Users/john.doe/spring-shell-example/target/spring-shell-example-1.0.0.jar started by john doe in /Users/john.doe/Development/examples/spring-shell-example)
2017-10-17 16:11:18.069  INFO 21210 --- [           main] com.basaki.Application                   : No active profile set, falling back to default profiles: default
2017-10-17 16:11:18.144  INFO 21210 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@34033bd0: startup date [Tue Oct 17 16:11:18 PDT 2017]; root of context hierarchy
2017-10-17 16:11:19.547  INFO 21210 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
indra:>

Once the application starts up, type add 1 2 to add up two integers. You should notice 3 in the terminal.

indra:>add 1 2
3
indra:>

About

Spring Shell 2.0 with Spring Boot 2.0 Examples with Tests

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages