๐ŸŒธ [SPRING BOOT] | MyBatis & Mapper - MyBatisSystemException , UnsatisfiedDependencyException

0
post-thumbnail

๐ŸŸฆ MyBatisSystemException

๐Ÿ”น ์—๋Ÿฌ๋ฉ”์‹œ์ง€

nested exception is org.apache.ibatis.reflection.ReflectionException: 
There is no getter for property named 'emial' 
in 'class com.koreait.facebook.user.model.UserEntity'

org.mybatis.spring.MyBatisSystemException: 
nested exception is org.apache.ibatis.reflection.ReflectionException: 
There is no getter for property named 'emial' 
in 'class com.koreait.facebook.user.model.UserEntity'
	at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96)
	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
  • no getter for property named 'emial' in 'class UserEntity'

๐Ÿ”น ์›์ธ

์Šคํฌ๋ฆฐ์ƒท(34)

  • UserMapper.xml ์—์„œ ์˜คํƒ€๋‚ฌ๋‹ค.

๐ŸŸฆ UnsatisfiedDependencyException , BeanCreationException

๐Ÿ”น ์—๋Ÿฌ

  • ์ด๋ฉ”์ผ ์ธ์ฆ์„ ํ•˜๋Š”๋ฐ ์ด๋ฉ”์ผ์„ ์ œ์™ธํ•œ
  • pw, nm, tel, authCd๊ฐ’์„ ๋ฐ›์•„์˜ค์ง€ ๋ชปํ–ˆ๋‹ค.
  • UserEntity( iuser=0, email=email@naver.comauthCd=93204, pw=null, nm=null, tel=null, authCd=null, regdt=null, mainProfile=null )

๐Ÿ”น ์—๋Ÿฌ๋ฉ”์‹œ์ง€

org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'userController': 
Unsatisfied dependency expressed through field 'service';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'userService' defined in file

๐Ÿ”น ์›์ธ && ํ•ด๊ฒฐ

  • ์ฟผ๋ฆฌ์ŠคํŠธ๋ง
  • eamil ๊ณผ authCd ์‚ฌ์ด์— &์ด๋น ์ง
profile
๋ช‡ ๋ฒˆ์„ ๋„˜์–ด์ ธ๋„ ์•ž์œผ๋กœ ๊ณ„์† ๋‚˜์•„๊ฐ€์ž

0๊ฐœ์˜ ๋Œ“๊ธ€