MapleStory Finger Point

๐ŸŸค JAVA/๐ŸŸค Spring

[Spring] ์Šคํ”„๋ง ์ดˆ๊ธฐ ์„ธํŒ… ๋ฐฉ๋ฒ•

HYEJU01 2024. 8. 6. 13:10
  • 1) jdk ์„ค์น˜
  • 2) spring ์„ค์น˜ (eclipse)
  • 3) tomcat ์„ค์น˜ (์„œ๋ฒ„)

 

โˆ˜โ‚Šโœงโ”€โ”€โ”€ (1) JDK ์„ค์น˜ โ”€โ”€โ”€โœงโ‚Šโˆ˜

 

 

โ— ์˜ค๋ผํด์‚ฌ์ดํŠธ์—์„œ jdk ๋‹ค์šด๋กœ๋“œ

https://www.oracle.com/java/technologies/downloads/

 

Download the Latest Java LTS Free

Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts.

www.oracle.com

SE : Standard Edition

EE : Enterprise Edition(๊ธฐ์—…์šฉ)

 

 

jdk 21 ๋ฒ„์ „์œผ๋กœ ๋‹ค์šด๋ฐ›์•„์คฌ๋‹ค.

 

 

exe ํŒŒ์ผ์„ ๋”๋ธ”ํด๋ฆญ

 

jdk ๋ฅผ ๋‹ค์šด๋ฐ›์•„์ค€๋‹ค.

 


 

 

โ— ์‹œ์Šคํ…œ ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ํŽธ์ง‘

์šด์˜์ฒด์ œ์˜ ์–ด๋””์„œ๋“ ์ง€ ์ž๋ฐ”๋ฅผ ์ธ์‹ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๊ธฐ ์œ„ํ•ด์„œ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ํŽธ์ง‘ํ•ด์ค˜์•ผํ•œ๋‹ค.

 

 

 

[ํ™˜๊ฒฝ๋ณ€์ˆ˜] > [์ƒˆ๋กœ๋งŒ๋“ค๊ธฐ]

JAVA_HOME ์œผ๋กœ jdk ์„ค์น˜๊ฒฝ๋กœ๋ฅผ ๊ฑธ์–ด์ค€๋‹ค.

 

 

 

[์‹œ์Šคํ…œ๋ณ€์ˆ˜] -> [ํŽธ์ง‘] -> [์ƒˆ๋กœ๋งŒ๋“ค๊ธฐ] >

%JAVA_HOME%\bin

๋””๋ ‰ํ„ฐ๋ฆฌ ๊ฒฝ๋กœ๋ฅผ ์ถ”๊ฐ€ํ•ด์ค€๋‹ค.

 

 


 

โ—  cmd ๋กœ ํ™•์ธํ•˜๊ธฐ

 

java -version ์œผ๋กœ ์ž˜ ์„ค์ • ๋˜์—ˆ๋Š”์ง€ ํ™•์ธ๊ฐ€๋Šฅํ•˜๋‹ค !

 


 

โˆ˜โ‚Šโœงโ”€โ”€โ”€ (2)   Spring  ์„ค์น˜  (Eclipse) โ”€โ”€โ”€โœงโ‚Šโˆ˜

 

โ—  Spring Tool Suite 4  ๋‹ค์šด๋กœ๋“œ

https://spring.io/tools

 

Spring | Tools

 

spring.io

 


 

์Šคํ”„๋ง ์‚ฌ์ดํŠธ์— ๋“ค์–ด๊ฐ€์„œ Spring Tool Suite 4 ๋ฅผ ๋‹ค์šด๋ฐ›์•„์ค€๋‹ค.

 

 

์š”๋Ÿฐ jar ํŒŒ์ผ์ด ๋‹ค์šด๋ฐ›์•„์ง€๋Š”๋ฐ

๋”๋ธ”ํด๋ฆญํ•ด์ค€๋‹ค.

 

์ด๋ ‡๊ฒŒ ๋‹ค์šด์ฐฝ์ด ๋œจ๊ฒŒ๋˜๊ณ 

 

ํด๋” ํ•˜๋‚˜๊ฐ€ ์ƒ์„ฑ๋œ๋‹ค.

 

ํด๋” ์•ˆ์— SpringTollSuit4 ๊ฐ€ ๋“ค์–ด์žˆ๋‹ค. 

 

 

์‹คํ–‰ํ•˜๊ธฐ

 

 

 

์›Œํฌ์ŠคํŽ˜์ด์Šค ํด๋”๋ฅผ ํ•˜๋‚˜ ๋งŒ๋“ค์–ด์„œ

์ง€์ •ํ•ด์ฃผ๊ณ  ์‹คํ–‰ํ•ด์ค€๋‹ค.

 

 

 

โ—  (์ดˆ๊ธฐ์„ธํŒ…)  encoding์„ UTF-8๋กœ ์„ค์ •

 

[window] > [Preferences] > encoding ๊ฒ€์ƒ‰ ํ›„ ์ „๋ถ€ UTF-8 ๋กœ ์„ธํŒ…

 

 

 


โ—  (์ดˆ๊ธฐ์„ธํŒ…)  Eclipse web Devleoper tools ๋‹ค์šด๋กœ๋“œ

[Help]  > [Eclipse Marketplace ]

 

 

[Eclipse Web Developer Tools]   ๋‹ค์šด๋กœ๋“œ  

 

์ฐฝ ๋œจ๋ฉด ๋‹ค ํ™•์ธ ๋ˆŒ๋Ÿฌ์ค˜์„œ ๋„˜๊ธฐ๊ณ  ์„ค์น˜ ์™„๋ฃŒ !!

 

Java EE ๋กœ ์˜คํ”ˆํ•ด์ค€๋‹ค.

 

 

 

 


โˆ˜โ‚Šโœงโ”€โ”€โ”€ (3)   Tomcat  ์„ค์น˜  โ”€โ”€โ”€โœงโ‚Šโˆ˜

โ—  ํ†ฐ์บฃ ๋‹ค์šด๋กœ๋“œ

https://tomcat.apache.org/

 

Apache Tomcat® - Welcome!

The Apache Tomcat® software is an open source implementation of the Jakarta Servlet, Jakarta Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta Annotations and Jakarta Authentication specifications. These specifications are part of the Jakarta

tomcat.apache.org

 

 

 

ํ†ฐ์บฃ 9 ๋ฒ„์ „์œผ๋กœ ๋‹ค์šด ๋ฐ›์„ ์˜ˆ์ •์ด๊ธฐ ๋•Œ๋ฌธ์—

[Tomcat 9 ] ๋กœ ๋“ค์–ด๊ฐ€์ค€๋‹ค.

 

 

 

 

[64-bit Windows zip ] ๋‹ค์šด๋กœ๋“œ 

 

์••์ถ•ํ•ด์ œํ•˜๋ฉด ์ด๋Ÿฐ ํด๋”๋ฅผ ๋ณผ ์ˆ˜ ์žˆ๋‹ค !

 

 

 

โ—  ์„œ๋ฒ„ ์—ฐ๊ฒฐํ•˜๊ธฐ 

 

 

 

Server ๊ฒ€์ƒ‰ ํ›„ ADD

 

 

 

Tomcat 9 ๋ฒ„์ „ ์„ ํƒ 

 

 

 

์„œ๋ฒ„๊ฐ€ ์žˆ๋Š” ํด๋”๋กœ ๊ฒฝ๋กœ ์ง€์ • ํ›„

์™„๋ฃŒ!!

 

 

 

 

์ด์ œ [New Server] ๋ฅผ ์ƒ์„ฑํ•ด์ค€๋‹ค !

 

 

 

9๋ฒ„์ „์œผ๋กœ ์ƒ์„ฑ 

 

 

 

port ๋ฒˆํ˜ธ๋ฅผ 8181๋กœ ๋ณ€๊ฒฝํ•ด์ค€๋‹ค.

 

์œ„์™€ ๊ฐ™์ด ์ฒดํฌ

 

 

startup ๋ฉ”์„ธ์ง€๊ฐ€ ๋œจ๋ฉด ์„œ๋ฒ„ ์ •์ƒ ์‹คํ–‰