エキサイト株式会社エンジニアの佐々木です。SpringBoot x MyBatis でDBのReader/Writerの接続設定をご紹介します。 application.ymlの設定 Reader/Writerの設定 トランザクションまわりの全体コード ReplicationResolver, DataSourceType ReplicationResolverのBean化 DataSource PlatformTransactionManager SqlSessionFactory SqlSessionTemplate まとめ application.ymlの設定 application.y…