<?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>Java</anon>
    <anon>SpringBoot</anon>
    <anon>DB</anon>
  </categories>
  <description>既存のシステムが利用しているDBに相乗りしてアプリケーションを作ることがあります。 ユニットテストのためにDBマイグレーションできるFlywayは使いたいが、相乗りする本番環境DBは管理していないので余計なことはしたくない。 今回の記事では、SpringBootを使いつつ検証環境DBにFlywayを適用するが、本番環境DBにはFlywayを適用しない方法を記載します。 環境 Java 15 SpringBoot 2.4.1 Flyway 7.5.0 PostgreSQL 13.1 設定 Springの設定ファイルに次の設定を加えてください。アプリケーション起動時にFlywayを読み込まなくなり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnainaistar.hatenablog.com%2Fentry%2F2021%2F01%2F25%2F120000&quot; title=&quot;SpringBootで特定の環境のみFlywayが動かないようにする - きり丸の技術日記&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/20210120/20210120192905.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-25 12:00:00</published>
  <title>SpringBootで特定の環境のみFlywayが動かないようにする</title>
  <type>rich</type>
  <url>https://nainaistar.hatenablog.com/entry/2021/01/25/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
