Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Spring Bootでの定数の扱い
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Hiromu Takahashi
April 15, 2024
320
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Spring Bootでの定数の扱い
https://clas-istyle.connpass.com/event/315044/
上記勉強会での発表内容
Hiromu Takahashi
April 15, 2024
More Decks by Hiromu Takahashi
See All by Hiromu Takahashi
gRPCの概要について理解できるスライド
tk_hirom
0
65
触って理解するElasticsearch 1
tk_hirom
0
36
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
The agentic SEO stack - context over prompts
schlessera
0
970
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
570
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
The SEO Collaboration Effect
kristinabergwall1
1
590
Documentation Writing (for coders)
carmenintech
77
5.6k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
The Mindset for Success: Future Career Progression
greggifford
PRO
0
540
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Designing Powerful Visuals for Engaging Learning
tmiket
1
610
Technical Leadership for Architectural Decision Making
baasie
3
600
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
Transcript
Spring Bootでの 定数の扱い
自己紹介 高橋拓夢 - アカウント - Twitter(X): @tk_hirom - GitHub: tk_hirom
- 経歴 - Web系4年目 - サーバーサイド中心 - ベンチャー企業→アスクル - 最近の興味 - CI/CD
概要 - Spring Bootで定数をどのように定義するか? - 定義した定数をどのようにプログラムの中で参照するか? - よりテストしやすくできないか? - よりシンプルに書けないか?
使用技術 - Spring Boot 3.2.4 - Kotlin 1.9.23
定義の仕方 - コード上に含める方法 - 設定ファイルから読み取る方法
定義の仕方 - コード上に含める方法 - コードのロジックで使用されるもの - マジックナンバー回避のためのもの - 設定ファイルから読み取る方法 -
データベース接続情報 - APIキー - ログレベル etc…
定義の仕方 - コード上に含める方法 - コードのロジックで使用されるもの - マジックナンバー回避のためのもの - 設定ファイルから読み取る方法 -
データベース接続情報 - APIキー - ログレベル etc… 今回はこっち
共通部分 application.yml
共通部分 application.yml
共通部分 WardrobeApiController
イマイチな実装 AppProperties
イマイチな実装の問題点 AppProperties
改善ver実装 AppProperties
改善ver実装 AppProperties
最後に - 今回作成したRepository - URL: https://github.com/tk-hirom/wardrobe-api - 次回はCodePipelineについて