any benefits to use Application.main() over embeddedServer() or vice versa?
o
orangy
02/07/2018, 10:00 PM
They are not mutually exclusive. Development engine setup is just a convenient method to run embedded host without setting up much. We should clean it up in docs @Deactivated User
m
Michael Kotlikov
02/07/2018, 10:20 PM
thanks!
d
Deactivated User
02/08/2018, 10:22 AM
Taking notes. Thanks for the feedback!
Also it allows you to externally set some configuration like the port, environment, watch, autoreload without recompiling. So for example you could have a packed JAR, and change that just by switching the
application.conf
without recompiling/repacking.
The
main
method with
embeddedServer()
is complementary. You can have both and use that main as your entry point to easily run your app within your IDE.