์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
- outofmemoryerror ๋ฐฉ์ง
- ios app ๊ฐ๋ฐ
- Oracle
- xcode12.5.1
- js ์ ์์๋ช
- jxls ์์
- Swift
- ๋ฌ๋ ฅ๊ธฐ๋ฅ๊ฐ๋ฐ
- ๋์ฉ๋์์ ์ ๋ก๋
- ์ ์์๋ช ๊ฐ๋ฐ
- monitorjbl ์์
- xlsx-streamer
- js๋ฌ๋ ฅ
- mysql
- spring annotation
- opcpackage
- ์ ์์๋ช ๊ธฐ๋ฅ๊ตฌํ
- poi ๋์ฉ๋
- xcode swift memo
- xssfworkbook
- Xcode
- poi monitorjbl
- swift ๋ฉ๋ชจ์ฅ ๋ง๋ค๊ธฐ
- PostgreSQL
- jxls
- MSsql
- fullcalendar js
- monitorjbl
- xssreader
- swift ๊ณ์ฐ๊ธฐ
- Today
- Total
web developer๐ฉ๐ป๐ป
[EgovFramework] context-syslogaop.xml aop Error ๋ณธ๋ฌธ
egovframework:์์คํ ๋ก๊ทธ์กฐํ [eGovFrame]
์์คํ ๋ก๊ทธ์กฐํ๋ ์์คํ ์ฌ์ฉ์ ๋ฐ์ํ๋ ๊ฐ์ข ๋ก๊ทธ๋ฅผ ๊ฒ์, ์กฐํํ๋ ๊ธฐ๋ฅ์ ์ ๊ณตํ๋ค. ์์คํ ๋ก๊ทธ์กฐํ๋ ์์คํ ๋ก๊ทธ์ ๋ฑ๋ก, ์กฐํ, ๋ชฉ๋ก, ์ญ์ , ์์ฝ์ ๊ธฐ๋ฅ์ ์๋ฐํ๋ค. โ ์์คํ ๋ก๊ทธ๋ฑ๋ก
www.egovframe.go.kr
egov ๊ณตํต ์ปดํฌ๋ํธ์ธ ์์คํ ๋ก๊ทธ ์กฐํ๋ฅผ ์ ์ฉํ๋ค ์๋์ ๊ฐ์ ์๋ฌ ๋ฉ์์ง๊ฐ ์ถ๋ ฅ๋์๋ค.
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'service๋ช
'
is expected to be of type 'egovframework.pcr.main.web.service.service๋ช
'
but was actually of type 'com.sun.proxy.$Proxy51'
์์ธ : spring aop ๋ฒ์ ์ด ๋ฎ๊ฑฐ๋, proxy-target-class๊ฐ ์ค์ ๋์ด์์ง ์์์.
์ฌ๊ธฐ์ Proxy๋ ์์ ์ด ํด๋ผ์ด์ธํธ๊ฐ ์ฌ์ฉํ๋ ค๊ณ ํ๋ ์ค์ ๋์์ธ ๊ฒ์ฒ๋ผ ์์ฅํด์ ํด๋ผ์ด์ธํธ์ ์์ฒญ์ ๋ฐ์์ฃผ๋ ๊ฒ์ ๋๋ฆฌ์, ๋๋ฆฌ์ธ๊ณผ ๊ฐ์ ์ญํ ์ ํ๋ ๊ฐ์ฒด์ ์๋ฏธํ๋ค.
ํด๊ฒฐ๋ฐฉ๋ฒ 1.
spring-core 4.0 ๋ฒ์ ๋ถํฐ๋ cglib๊ฐ ์ฌ๋ผ์ก๋ค. pom.xml์ spring-aop version์ ํ์ธํด๋ณด๊ณ vesrion up์ ์์ผ์ค๋ค.
ํด๊ฒฐ๋ฐฉ๋ฒ 2.
context-syslogaop.xml ํ์ผ์ proxy-target-class="true" ์ถ๊ฐ ๋๋ controller์ @EnableAspectJAutoProxy ์ถ๊ฐ
<aop:aspectj-autoproxy proxy-target-class="true"/>
@EnableAspectJAutoProxy
์ฐธ๊ณ : https://lts0606.tistory.com/71
'Spring' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[JAVA] java.lang.Integer cannot be cast to java.lang.String ํ๋ณํ ์ค๋ฅ ํด๊ฒฐํ๊ธฐ (0) | 2021.10.29 |
---|---|
[EgovFramework] Spring Interceptor session AJAX ์ฒ๋ฆฌ (0) | 2021.10.18 |
๋ก๊ทธ์ธ ์๋ฐฉํฅ ์ํธํ(RSA) ๋จ๋ฐฉํฅ ์ํธํ(SHA 256) ์ฌ์ฉํ๊ธฐ (0) | 2021.09.03 |
[Spring Error] Can not find the tag library descriptor for (0) | 2021.08.31 |
[JAVA] Lamda ํํ์ ์์ (0) | 2021.08.27 |