<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>mybatis</anon>
  </categories>
  <description>既に生成済の SqlSession に対して後から SQL mapper を追加する方法 （設計として悪いので勧められない）セッションが持っている マッパーレジストリにマッパークラスを追加する。 import org.apache.ibatis.binding.MapperRegistry; import org.apache.ibatis.session.SqlSession; 以下のようなメソッドを用意して呼べば良い。 public void addMapper(SqlSession session, Class&lt;?&gt; mapperClass) { MapperRegistry regis…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2021%2F11%2F27%2F163357&quot; title=&quot;mybatis で、後からマッパーを追加する。 - Oboe吹きプログラマの黙示録&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>2021-11-27 16:33:57</published>
  <title>mybatis で、後からマッパーを追加する。</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2021/11/27/163357</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
