<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sioiri</author_name>
  <author_url>https://blog.hatena.ne.jp/sioiri/</author_url>
  <blog_title>しおしお</blog_title>
  <blog_url>https://siosio.hatenablog.com/</blog_url>
  <categories>
    <anon>spring boot</anon>
    <anon>kotlin</anon>
  </categories>
  <description>@Valueアノテーションを使ってプロパティの値をインジェクションする場合、デフォルトではプレフィックスに${を指定する必要がある。 Javaで書いてる場合は問題ないけど、Kotlinを使うと文字列内の$は変数を展開するために使うので下のコードのようにエスケープしないとダメで残念な感じになります。 @Value(&quot;\${target.host}&quot;) private val host:String プレフィックスはこんな感じに、PropertySourcesPlaceholderConfigurerを使うことで変更できます。 @Bean open fun propertyConfigurer()…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsiosio.hatenablog.com%2Fentry%2F2016%2F11%2F23%2F082021&quot; title=&quot;Spring Bootの＠Valueに指定するプレースホルダのプレフィックスを変更する方法 - しおしお&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-11-23 08:20:21</published>
  <title>Spring Bootの＠Valueに指定するプレースホルダのプレフィックスを変更する方法</title>
  <type>rich</type>
  <url>https://siosio.hatenablog.com/entry/2016/11/23/082021</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
