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_初boot.pdf
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
miho
May 29, 2016
Technology
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Spring_boot_初boot.pdf
spring bootを初bootしてみました。
miho
May 29, 2016
Other Decks in Technology
See All in Technology
DGX Spark でどこまでハッキングができるのか?
kash1064
3
1.3k
WasmをRustにする
sansantech
PRO
0
250
S3 Filesで挑む! 八戸せんべい汁の食べ頃問題
usanchuu
0
100
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
860
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
950
hackers_champloo_2026_tidb
makocchi
0
160
スキマバイトという雇用形態は存在しないので、雇用期間1日のアルバイト契約を事業者とワーカーが結ぶ手続きを支えるのがタイミーなんです
akitoshiga
0
200
会社説明資料
persolserverworks
0
9.8k
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
4
1.2k
AI時代のPRレビューにどう向き合うか?
kairim0
1
240
Running Kotlin + Quarkus with Lambda
nealle
1
3.8k
しろおびから始める!ログ活用の第一歩
shumei_ito
0
950
Featured
See All Featured
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
It's Worth the Effort
3n
188
29k
Agile that works and the tools we love
rasmusluckow
331
22k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
500
Statistics for Hackers
jakevdp
799
230k
Product Roadmaps are Hard
iamctodd
55
13k
Fireside Chat
paigeccino
43
4.1k
A Tale of Four Properties
chriscoyier
163
24k
Mobile First: as difficult as doing things right
swwweet
225
10k
4 Signs Your Business is Dying
shpigford
187
23k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
Transcript
Spring boot 初boot
Spring bootとはなんぞ 三行で ・springフレームワークを楽チンに作れて起動もできるよ ・ご一緒にtomcatもセットでいかがでしょうか? ・アノテーションよこんにちは。Xmlよさようなら。
面倒くさそうだからmavenか らプロジェクトつくります。 Eclipse 4.2以上だったら入っ てるやつです。
Maven = Pom.xmlをいじくっ て、プロジェクト作成をやっ てくれる ぐぐってでてきた、 spring boot 用の pom.xmlサンプルを参考
にそのまま書きます。
プロジェクト右クリック ⇒maven⇒プロジェクト更新
おるわおるわ それっぽいのがおるわ
デフォルト。 これではなんのspringもないので
SpringApplication.run(App.class, args); とりあえずこれだけの状態で起動し てみる
当然、落ちます。
アノテーション 追加
None
bootだけはしたっぽい。 bootだけは!
bootしたった感がないので hello worldをだす
追加 追加 アノテーションをつけた任 意のメソッドを追加。 @RequestMapping(“/”)内 のURLをたたくと、ここの メソッドが呼びだれる仕組 み。
起動したらおちました
2016-05-29 16:37:52.302 ERROR 11600 --- [ main] o.apache.catalina.core.StandardService : Failed
to start connector [Connector[HTTP/1.1-8080]] org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8080]] 身に覚えはないけど・・ tomcatがどこかで立ち上がってるのかなんなのか8080 ポートがふさがっているらしい サービスみても見つからないしそもそも整理整頓できない子だ から探すのめんどうくさいので
追加 application.properties server.portを設定 8080以外を Spring のtomcatのポート番号を 変更します
. ____ _ __ _ _ /¥¥ / ___'_ __
_ _(_)_ __ __ _ ¥ ¥ ¥ ¥ ( ( )¥___ | '_ | '_| | '_ ¥/ _` | ¥ ¥ ¥ ¥ ¥¥/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_¥__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.2.1.RELEASE) 2016-05-29 16:50:45.932 INFO 5896 --- [ main] com.example.springboot.App : Starting App on R632H with PID 5896 ~~~はしょり~~~ 2016-05-29 16:50:48.875 INFO 5896 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2016-05-29 16:50:48.935 INFO 5896 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8090 (http) 2016-05-29 16:50:48.935 INFO 5896 --- [ main] com.example.springboot.App : Started App in 3.323 seconds (JVM running for 3.881) 立ちあがったっぽい
http://localhost:8090/ @RequestMapping(“/”)が実行され、 home()メソッドが呼び出されてHello Worldが返る
Boot できました Hello worldできました Tomcat のPort変更できました