title: How a pattern can be applied for a spring boot application running in 2 modes initialize and server?
body: <p>I am seeking a pattern 2 days for develoing my spring boot web on 2 modes of initialize and server.</p>
  
  <p>I'll get a parameter from program arguments or yaml file.</p>
  
  <p>If this parameter is initialize program running on initialize mode. Initialize mode will do some settings, creating hibernate table, adding default users to db after that stop. Yes, I'll run and finish this works after that it'll stop.</p>
  
  <p>If this parameter is server, program run normally spring boot web application.</p>
  
  <p>Do you know a pattern like I said or Could offer any solution to me?</p>
  
  <p>Thanks.</p>