Closed at15 closed 8 years ago
we need to split the project into two modules if we want to have two jars, another easier way is to have a main class and choose which application we will use based on commandline parameters. This is better since we don't publish any module yet, the easier the better.
f5472769d688de81fd1a58ecf0d203991ce538a3 fails to do what my previous comment said, since spring will scan and launch tomcat if use web
as starter package ....
since we are using php now, this issue is no longer needed.
Though I didn't plan to use microservice, I do need a command line application and a web application. The command line application could be used to do tasks like migration, generate some code from template, validate code etc. And the web application just works as normal backend.
build two separated jarsuse commandline arguments to start different spring application https://github.com/paulc4/microservices-demo