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
Hello Spring(202109社内勉強会)
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
shimadamiyuki
September 16, 2021
130
0
Share
Hello Spring(202109社内勉強会)
月一で実施している社内勉強会の資料です(2021.09)
shimadamiyuki
September 16, 2021
More Decks by shimadamiyuki
See All by shimadamiyuki
20240912 JJUGナイトセミナー
mii1004
0
270
STORES決済の裏側のはなし(Code Polaris 色んなエンジニアLT大会)
mii1004
0
310
オブジェクト指向がわからない(202201社内勉強会)
mii1004
0
200
たのしい情報収集(202112社内勉強会)
mii1004
0
130
リファクタリング?(202111社内勉強会)
mii1004
0
120
OpenAPI Generator使ってみる(Java女子部ハロウィンLT)
mii1004
0
100
ビルドツールの話(202110社内勉強会)
mii1004
0
150
StreamAPI, Lambdaと仲良くなる(202108社内勉強会)
mii1004
0
150
Javaはじめのいっぽ(202107社内勉強会)
mii1004
0
160
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.3k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Into the Great Unknown - MozCon
thekraken
41
2.4k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
160
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
540
How to Ace a Technical Interview
jacobian
281
24k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.3k
The Spectacular Lies of Maps
axbom
PRO
1
730
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
280
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Transcript
Hello Spring 9⽉チーム会
Springってなんだっけ • Pivotal社が中⼼となってオープンソースで開発されているJavaフレー ムワーク https://spring.io/ https://github.com/spring-projects • Spring Frameworkを中⼼に、⾊々なプロジェクトが集まっている
Springのプロジェクト https://spring.io/projects ・Spring Core(Spring Framework) ・Spring Boot ・Spring Web ・Spring
Data ・Spring Security ・・・など
Spring Framework(Spring Core) Springの⼀番基本的な(コアの 機能を提供する)プロジェクト Springのコア機能で Dependency Injectionが 最初に挙げられている
Springの特徴 Springといえば・・・「DI」と「AOP」 DI(Dependency Injection) ︓依存性の注⼊ AOP(Aspect Oriented Programming) ︓アスペクト指向プログラミング
Dependency Injection クラスが必要とするインスタンスを⾃分でnewするのでは なく、あらかじめ⽤意したインスタンスを注⼊する →クラス間の依存が低くなり、差し替えが容易になる クラスA クラスB DIコンテナ B B
アプリケーションの起動時に、 指定したクラスのインスタンスをDIコンテナに準備 (@Beanや@Componentとか) DIコンテナに準備されているインスタンスを コンストラクタインジェクションや @Autowiredで呼び出して使う
AOP 各コードに散在する共通的な処理を“Aspect”というモジュールとして 別のコードに分離する (ロギング、キャッシング、トランザクション管理など) →共通的な処理を毎回実装する必要がなくなり、Bean⾃体の実装は 本質的なことに集中できる 参考︓ SpringのDIコンテナの動作イメージ(雰囲気)を掴もう https://qiita.com/kazuki43zoo/items/7a0e96573e930ac934ed はじめるSpring
Boot2(有償/⼀部執筆中) https://ik.am/notes Spring 5 & Spring Boot 2ハンズオン https://qiita.com/suke_masa/items/44463518fdbbc13e0087
SpringのProject を作るには Spring initializerを使うのが便利 https://start.spring.io/