|
|
@ -14,13 +14,13 @@ public class SeparateGoldServiceApplication { |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
SpringApplication app = new SpringApplication(SeparateGoldServiceApplication.class); |
|
|
|
app.addInitializers(ctx -> { |
|
|
|
try { |
|
|
|
Thread.sleep(5000); |
|
|
|
} catch (InterruptedException e) { |
|
|
|
Thread.currentThread().interrupt(); |
|
|
|
} |
|
|
|
}); |
|
|
|
// app.addInitializers(ctx -> { |
|
|
|
// try { |
|
|
|
// Thread.sleep(5000); |
|
|
|
// } catch (InterruptedException e) { |
|
|
|
// Thread.currentThread().interrupt(); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
|
|
|
|
ConfigurableApplicationContext ctx = app.run(args); |
|
|
|
ConfigurableEnvironment env = ctx.getEnvironment(); |
|
|
|