Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
multiple-databases-demo
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yuta Endo
November 22, 2017
Programming
0
540
multiple-databases-demo
Yuta Endo
November 22, 2017
Tweet
Share
More Decks by Yuta Endo
See All by Yuta Endo
LINE_Platform_-_UI_UX勉強会__02_-_Chat_Bot編資料.pdf
manzen
0
380
Other Decks in Programming
See All in Programming
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
330
AI時代のソフトウェア開発でも「人が仕様を書く」から始めよう-医療IT現場での実践とこれから
koukimiura
0
140
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
510
Go Conference mini in Sendai 2026 : Goに新機能を提案し実装されるまでのフロー徹底解説
yamatoya
0
560
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
240
コーディングルールの鮮度を保ちたい / keep-fresh-go-internal-conventions
handlename
0
190
AHC061解説
shun_pi
0
360
Unity6.3 AudioUpdate
cova8bitdots
0
120
DSPy入門 Pythonで実現する自動プロンプト最適化 〜人手によるプロンプト調整からの卒業〜
seaturt1e
1
680
Fundamentals of Software Engineering In the Age of AI
therealdanvega
1
240
15年目のiOSアプリを1から作り直す技術
teakun
1
620
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
540
Featured
See All Featured
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
210
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
Designing Powerful Visuals for Engaging Learning
tmiket
0
270
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
How to train your dragon (web standard)
notwaldorf
97
6.6k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
410
New Earth Scene 8
popppiees
1
1.7k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Building an army of robots
kneath
306
46k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.9k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
53k
KATA
mclloyd
PRO
35
15k
Transcript
KotlinとSpring Bootで 複数データベースを扱う Rest APIを作ってみた 2017/11/22 #m3kt どこでもKotlin #4 秋のLT大会
のらねこワークス株式会社 遠藤 @ENZEN0129
自己紹介 氏名:遠藤 友太 Twitter:@ENZEN0129 所属:のらねこワークス株式会社 エンジニア 得意:java ruby kotlin php
node angular react js aws … etc その他活動 • http://www.ittan.website/ • https://qiita.com/enzen • http://www.enzen.net/
今日のテーマ Kotlin x spring bootでマルチデータベースアクセス!!
環境
ディレクトリ構成
処理イメージ Controller Service Service Repository Repository
APIのイメージ Controller Service Service Repository Repository
Controller
Controller
Controller
None
Controller
None
最高やでKotlinたん
ちなみにJavaで書くとこんな感じ
None
None
APIのイメージ Controller Service Service Repository Repository
User Service
External User Info Service
APIのイメージ Controller Service Service Repository Repository
Repository
model
Primary Configuration
Configuration
Secondary Configuration
Configuration
Spring bootでできたしSpring batchでも Kotlin x spring batchでマルチデータベースアクセス!!
None
なんで?
None
None
誰か僕に教えてよ
None
こんなになるまでいろいろ 試したんだ
None
誰か僕を助けてよ!
None
None
None
Spring bootでできたしSpring batchでも。。。 あれ? Kotlin x spring batchでマルチデータベースアクセス!!
結果 Kotlin x spring boot x spring bootで マルチデータベースアクセス!!
最後に サンプルコードをGithubにあげています。 https://github.com/manzen/multiple-databases-demo