<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_saiki</author_name>
  <author_url>https://blog.hatena.ne.jp/y_saiki/</author_url>
  <blog_title>Sassyブログ</blog_title>
  <blog_url>https://www.sassy-blog.com/</blog_url>
  <categories>
    <anon>IT・ソフトウェア</anon>
  </categories>
  <description>目次 目次 1.概要 2.実装手順 2-1.起動と停止時に呼び出されるメソッドを定義したクラスを作成する。 2-2.Config用のクラスに設定する。 1.概要 Webアプリを開発している際に、アプリ起動時と停止時になんらかしらの処理を入れたいと思うときがあります。（たとえば、DBのコネクションを破棄したりなど。。。） 今回はSpringBootを使用してこれを実現するやり方をまとめました。 んで、やり方としては複数パターンあるのですが、 今回はSpringらしく？アノテーションを使用して実現したものを載せます。 以下にざっくりですが記述がありますので参考にさせていただきます。 http://…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sassy-blog.com%2Fentry%2F20170922%2F1506039577&quot; title=&quot;Spring Bootでアプリケーション起動と停止のタイミングで処理を行う方法 - Sassyブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://hbb.afl.rakuten.co.jp/hgb/1e5002f0.41b29695.1e5002f1.4148a108/?me_id=1213310&amp;item_id=19382571&amp;pc=https%3A%2F%2Fthumbnail.image.rakuten.co.jp%2F%400_mall%2Fbook%2Fcabinet%2F1855%2F9784802611855.jpg%3F_ex%3D240x240&amp;s=240x240&amp;t=pict</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-22 09:19:37</published>
  <title>Spring Bootでアプリケーション起動と停止のタイミングで処理を行う方法</title>
  <type>rich</type>
  <url>https://www.sassy-blog.com/entry/20170922/1506039577</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
