<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nainaistar</author_name>
  <author_url>https://blog.hatena.ne.jp/nainaistar/</author_url>
  <blog_title>きり丸の技術日記</blog_title>
  <blog_url>https://nainaistar.hatenablog.com/</blog_url>
  <categories>
    <anon>SpringBoot</anon>
    <anon>Java</anon>
    <anon>技術</anon>
  </categories>
  <description>Javaのオープンチャットにて、「SpringBootの起動時にDBアクセスしてマスタデータを保持することは可能ですか？」といった質問が出てきました。 この記事は、解決方法として挙げられたPostConstructという処理を理解していなかったので、PostConstructを勉強するための記事です。 環境 Java 15 org.springframework.boot 2.4.5 Lombok 1.18.20 ※ DIするためにSpringBootを使用していますが、PostConstruct自体はJavaの機能なので、他のフレームワークでも使用できると思います。 ユースケース アプリ起動…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnainaistar.hatenablog.com%2Fentry%2F2021%2F06%2F07%2F120000&quot; title=&quot;Javaで起動後DBの値をキャッシュに持つ等をPostConstructで処理させる（SpringBoot） - きり丸の技術日記&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://cdn-ak.f.st-hatena.com/images/fotolife/n/nainaistar/20210605/20210605153751.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-07 12:00:00</published>
  <title>Javaで起動後DBの値をキャッシュに持つ等をPostConstructで処理させる（SpringBoot）</title>
  <type>rich</type>
  <url>https://nainaistar.hatenablog.com/entry/2021/06/07/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
