Oh, yes. Got it. Like the ServerCommand, it is an EnvironmentCommand. 在2021年8月10日星期二 UTC+8 下午7:08:53<jscha...@gmail.com> 写道:
> Hi, > > take a look at how the commands for dropwizard-migrations (using > Liquibase) are being implemented: > > > https://github.com/dropwizard/dropwizard/blob/v2.0.24/dropwizard-migrations/src/main/java/io/dropwizard/migrations/AbstractLiquibaseCommand.java#L23 > > As mentioned in your previous thread, ConfiguredCommand won't start Jetty, > but EnvironmentCommand will do this. > > Cheers, > Jochen > > Am 10.08.2021 um 11:17 schrieb Feng Lei <wufen...@gmail.com>: > > Hi Dropwizard, > > My custom command is named migrate which is EnvironmentCommand type. > It is just a plain command that does a job only once so it doesn't need > Jersey. > It works fine but the problem is at the end of the job I expect the Java > application should stop automatically. But no, the application was still in > a running state and no phenomenons show it will stop later. > > It is a bit weird, do you guys know why that happens? It is something > related to the Dropwizard lifecycle? > > -- > You received this message because you are subscribed to the Google Groups > "dropwizard-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to dropwizard-de...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dropwizard-dev/976a100b-afd6-407b-9483-9dc53867aec4n%40googlegroups.com > > <https://groups.google.com/d/msgid/dropwizard-dev/976a100b-afd6-407b-9483-9dc53867aec4n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "dropwizard-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dropwizard-dev/c579c606-544e-4cfb-bdbc-01f11b2a812en%40googlegroups.com.