Grails > 起動時と終了時の処理

更新日 2014-09-28
広告
Grailsで、起動時と終了時の処理を実装する方法を紹介します。 起動時と終了時の処理は、grails-app/conf/BootStrap.groovyに実装できます。
class BootStrap {

  def init = { servletContext ->
    // 初期化処理
  }
  def destroy = {
    // 終了処理
  }
}
広告
お問い合わせは sweng.tips@gmail.com まで。
inserted by FC2 system