๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Environment·Tool/IntelliJ IDEA

[IntelliJ] ํ”„๋กœ์ ํŠธ(๋ชจ๋“ˆ) Tomcat ์„œ๋ฒ„ context.xml ์ƒ์„ฑ ๋ฐฉ๋ฒ•

by Leica 2020. 2. 17.
๋ฐ˜์‘ํ˜•

[IntelliJ] ํ”„๋กœ์ ํŠธ(๋ชจ๋“ˆ) Tomcat ์„œ๋ฒ„ context.xml ์ƒ์„ฑ ๋ฐฉ๋ฒ•

Project Structure ์ฐฝ์—์„œ ํ•ด๋‹นํ•˜๋Š” ์›น ํ”„๋กœ์ ํŠธ(๋ชจ๋“ˆ)์˜ Web framework๋ฅผ ์„ ํƒํ•˜๊ณ  [Add Application Server specific descriptor...]๋ฅผ ํด๋ฆญํ•œ๋‹ค.

 

์œ„์™€ ๊ฐ™์ด ์ง€์ •ํ•ด์ค€๋‹ค.

IntelliJ IDEA 2019.3 ๊ธฐ์ค€์œผ๋กœ Version์€ 5.0๋งŒ ์žˆ์ง€๋งŒ ์ƒ๊ด€ ์—†๋‹ค.

[OK]๋ฅผ ํด๋ฆญํ•œ๋‹ค.

 

์œ„์™€ ๊ฐ™์ด Tomcat Context Descriptor๊ฐ€ ์ถ”๊ฐ€๋œ ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.

[OK]๋ฅผ ํด๋ฆญํ•œ๋‹ค.

 

META-INF/context.xml ํŒŒ์ผ์ด ์ƒ์„ฑ๋˜์—ˆ๋‹ค.

์—ฌ๊ธฐ์— DataSource ๋“ฑ์˜ ํ•„์š”ํ•œ ์„ค์ •์„ ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€