๐ŸŒท๐ŸŒผ๋ชจ์—ฌ๋ด์š” ๊ฐœ๋ฐœ์˜์ˆฒ๐ŸŒท๐ŸŒผ

[ํ•ด๊ฒฐ๋ฐฉ์•ˆ] Cannot find class [egovframework.com.cmm.EgovComExcepHndlr] for bean with name 'egovHandler' defined in file ๋ณธ๋ฌธ

๊ฐœ๋ฐœ/๊ฐœ๋ฐœ๊ด€๋ จ ๊ธฐํƒ€ ๊ธ€

[ํ•ด๊ฒฐ๋ฐฉ์•ˆ] Cannot find class [egovframework.com.cmm.EgovComExcepHndlr] for bean with name 'egovHandler' defined in file

์š”์ผ์ด 2021. 11. 16. 16:44
๋ฐ˜์‘ํ˜•

์˜ค์ „๊นŒ์ง€ ๋ฉ€์ฉกํ–ˆ๋˜ ์ดํด๋ฆฝ์Šค์˜ ์ฝ˜์†”์— ์˜คํ›„๋ถ€ํ„ฐ ์—๋Ÿฌ๋“ค์ด ๋œจ๊ธฐ ์‹œ์ž‘ํ–ˆ๋‹ค.

 

์ฝ˜์†” ์—๋Ÿฌ๋กœ๊ทธ์— ์ฒซ๋ฒˆ์งธ๋กœ

Cannot find class [egovframework.com.cmm.EgovComExcepHndlr] for bean with name 'egovHandler' defined in file

์ด ๋ฌธ์žฅ์ด ์ฐํ˜”๋‹ค

 

๊ตฌ๊ธ€๋ง ํ•ด๋ณด๋‹ˆ c๋“œ๋ผ์ด๋ธŒ์˜ user/.m2 ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ์— ๋ฉ”์ด๋ธ์ด ์ธ์Šคํ†จ ๋˜์–ด์žˆ์ง€ ์•Š์•„์„œ ๊ทธ๋ ‡๋‹ค๊ณ  ํ•œ๋‹ค.

 

๋˜, ๋‚˜๋Š” ์ „์ž์ •๋ถ€ํ”„๋ ˆ์ž„์›Œํฌ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์— eGovFrame ํฌํ„ธ์˜ ๊ธฐ์ˆ ์ง€์› ๋ฌป๊ณ  ๋‹ตํ•˜๊ธฐ์—์„œ ์ฐพ์•„๋ณด์•˜๋Š”๋ฐ ๋‹ต์€

 

ํ”„๋กœ์ ํŠธ ์šฐํด๋ฆญ > Maven > Update Project๋ฅผ ์„ ํƒํ•˜์‹œ๊ณ 
Force Update ~~~์— ์ฒดํฌํ›„ OK์„ ํƒํ•˜์—ฌ
์ €์žฅ์†Œ๋ฅผ ์ดˆ๊ธฐํ™”ํ›„์— ์žฌ๊ธฐ๋™ํ•ด ๋ณด์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

 

์˜€๋‹ค...

 

๊ทธ๋ž˜์„œ ์ด๊ฑธ ๋ฏฟ๊ณ  ๊ฑฐ์˜ 3์‹œ๊ฐ„๋™์•ˆ

 

1. project > clean

2. ํ”„๋กœ์ ํŠธ ์šฐํด๋ฆญ > debug as > maven clean

3. ํ”„๋กœ์ ํŠธ ์šฐํด๋ฆญ > debug as > maven install (์—ฌ๊ธฐ์„œ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธด๋‹ค๋ฉด jdk ์„ค์ • ์ž˜๋ชป ํ•œ๊ฑฐ๊ธฐ ๋•Œ๋ฌธ์— ๊ทธ์ชฝ์œผ๋กœ ๊ฒ€์ƒ‰ ํ•˜์‹œ๊ธฐ ๋ฐ”๋žŒ <์„ฑ๊ณต์‹œ Build Sucess>)

4. ํ”„๋กœ์ ํŠธ ์šฐํด๋ฆญ > Maven > Update Project ํ›„ Force Update ~~~์— ์ฒดํฌํ›„ OK์„ ํƒ

5. ์„œ๋ฒ„ ์˜ค๋ฅธ์ชฝ ํด๋ฆญ > ํด๋ฆฐ

6. ์žฌ๊ธฐ๋™

 

์ด ๊ณผ์ •์„ 10๋ฒˆ ํ•˜๋‹ˆ๊น ๋˜๋”๋ผ ๋”ฑ. 

 

์–ด๋–ค ๋ธ”๋กœ๊ทธ์˜ ๋ง์„ ์ธ์šฉํ•˜์ž๋ฉด, ์ด ํ˜„์ƒ์€ ์›น์Šคํ€˜์–ด์˜ ๋ฒ„๊ทธ๋ผ๊ณ  ํ•œ๋‹ค.

 

์ „์ž์ •๋ถ€ ํ”„๋ ˆ์ž„์›Œํฌ + ์ดํด๋ฆฝ์Šค + ์›น์Šคํ€˜์–ด์˜ ๋ถ€๋‹ด์œผ๋กœ ์ดํด๋ฆฝ์Šค๊ฐ€ ๋ฌด๊ฒŒ๋ฅผ ๊ฒฌ๋””์ง€ ๋ชปํ•˜์—ฌ ์ด๋Ÿฐ ํ˜„์ƒ์ด ์ƒ๊ธฐ๋Š” ๊ฒƒ์ด๋ผ๊ณ  ํ•œ๋‹ค. (๋‚œ ์ด๋ฅผ ๋ฏฟ๋Š”๋‹ค. ๋‹ค๋ฅธ PC๋“ค์—์„œ๋„ ์ „์ž์ •๋ถ€ ๊ฐœ๋ฐœํ™˜๊ฒฝ์„ ์„ธํŒ… ํ• ๋•Œ ๋งˆ๋‹ค ์ด๋Ÿฌ๊ธฐ ๋•Œ๋ฌธ)

 

๋˜ ๋‹ค๋ฅธ ์กฐ์น˜ ๋ฐฉ๋ฒ•์€

1. pom.xml์˜ ๋‚ด์šฉ์„ ์ „๋ถ€ ctrl + x ํ›„ ์ €์žฅ

2. ์ดํด๋ฆฝ์Šค ๋นŒ๋“œ ํ›„ ๋‹ค์‹œ ctrl + v ์ €์žฅ

3. ๋นŒ๋“œ๊ฐ€ ๋๋‚˜๋ฉด ์‹คํ–‰

 

์ด๋ผ๊ณ  ํ•œ๋‹ค. ์ด ๋ถ€๋ถ„์€ ๋‹ค์Œ์— ๋‹ค์‹œ ์ด๋Ÿฐ ํ˜„์ƒ์ด ์ผ์–ด๋‚˜๋ฉด ์จ๋ด์•ผ ๊ฒ ๋‹ค.

Comments