Spring Legacy Project -> Simple Spring Maven ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ์‹œ MANIFEST ํŒŒ์ผ๋งŒ ์ƒ์„ฑ๋  ๋•Œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• (Maven Project ์ƒ์„ฑ)

2021. 11. 8. 17:37ใ†Spring

728x90

Spring Legacy Project : ์ผ๋ฐ˜์ ์ธ Spring ํ”„๋ ˆ์ž„์›Œํฌ ํ”„๋กœ์ ํŠธ์ด๋‹ค. 

Spring Starter Project : Spring Boot๋ฅผ ์ด์šฉํ•˜๊ธฐ ์œ„ํ•œ ํ”„๋กœ์ ํŠธ์ด๋‹ค. 

 

์šฐ์„  ์Šคํ”„๋ง์„ ๊ณต๋ถ€ํ•˜๊ธฐ๋กœ ํ•œ ๊ฒƒ์ด๊ธฐ ๋•Œ๋ฌธ์— Spring Legacy Project๋กœ ์„ ํƒํ–ˆ๋‹ค. 

 

 

์—ฌ๊ธฐ์„œ 

Simple projects ํด๋” ์•ˆ์˜ 

Simple java ์€  java ๋นŒ๋“œ๋ฅผ ์‚ฌ์šฉํ•ด ๊ฐ„๋‹จํ•œ Spring ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๊ฒƒ์ด๊ณ , 

Simple Spring maven ์€ Spring ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ํฌํ•จํ•˜๋Š” maven์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ„๋‹จํ•œ Spring ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•œ๋‹ค. 

Simple Spring Web Maven ์€ Spring web ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋กœ maven์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ„๋‹จํ•œ Spring ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•œ๋‹ค. 

 

๋งˆ์ง€๋ง‰์œผ๋กœ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋Š” Spring MVC Project๋Š” mvc ํ˜•ํƒœ๋กœ maven๊นŒ์ง€ ๊ฐ–์ถฐ์ง„ ํ”„๋กœ์ ํŠธ๊ฐ€ ์ƒ์„ฑ๋œ๋‹ค.

 

Spring MVC Project๋ฅผ ๊ฐ€์žฅ ๋งŽ์ด ์ด์šฉํ•˜๋Š”๋ฐ ๊ณต๋ถ€ํ•˜๊ธฐ ์œ„ํ•ด์„œ Simple Spring maven์œผ๋กœ ์Šคํ”„๋ง ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•˜๋ ค๊ณ  ํ–ˆ๋Š”๋ฐ ์ƒ์„ฑํ•˜๊ณ  ๋‚˜๋ฉด 

๋งค๋‹ˆํŽ˜์ŠคํŠธ๋งŒ ์ƒ๊ธฐ๊ณ  ๊ธฐ๋ณธ์ ์ธ Spring ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ผ๋˜๊ฐ€๊ฐ€ ํ•˜๋‚˜๋„ ์—†๋‹ค. 

๊ตฌ๊ธ€๋ง์„ ํ•ด๋ด๋„ ๋‹ค๋“ค ์ด์œ ๋Š” ๋”ฑํžˆ ๋ชจ๋ฅด๋Š”๊ฑฐ ๊ฐ™์•„์„œ ๋ฐฉ๋ฒ•์„ ์ฐพ์•„๋ณด๋‹ˆ ๊ทธ๋ƒฅ 

Maven Project๋กœ ์ƒ์„ฑํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

ํ˜•๊ด‘ํŽœ์œผ๋กœ ์น ํ•ด์ง„ ๋ถ€๋ถ„์„ ์ฒดํฌํ•˜๊ณ  next๋ฒ„ํŠผ์„ ๋ˆ„๋ฅธ๋‹ค. 

์—ฌ๊ธฐ์— id๋งŒ ์ž‘์„ฑํ•ด์ฃผ๋ฉด ๊ธฐ์กด์— Simple Spring maven ํ”„๋กœ์ ํŠธ๊ฐ€ ์ƒ์„ฑ๋˜๋Š” ๊ฒƒ ๊ฐ™๋‹ค. 

์ด๋•Œ groupid๋Š” ํ”„๋กœ์ ํŠธ๋ฅผ ์‹๋ณ„ํ•˜๊ฒŒ ํ•ด์ฃผ๋Š” ์‹๋ณ„์ž๋ผ๊ณ  ํ•œ๋‹ค. 

๋ณดํ†ต groupid๋Š” java์˜ ํŒจํ‚ค์ง€ ์ด๋ฆ„ ๊ทœ์น™์„ ๋”ฐ๋ผ์•ผ ํ•œ๋‹ค๊ณ  ํ•œ๋‹ค. 

artifactid๋Š” ํŠน์ˆ˜ ๋ฌธ์ž๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  ์†Œ๋ฌธ์ž๋กœ๋งŒ ์ž‘์„ฑํ•œ๋‹ค. (ํ”„๋กœ์ ํŠธ ์ด๋ฆ„์ด ๋˜๋Š” ๊ฒƒ ๊ฐ™์Œ) 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

728x90