The alias '' is already mapped to the value '**$1'.
inner class( **$1.class) 에서 에러가 발생했다..-_-;
alias 제한을 너무 넓게 잡아서 발생한 문제. 범위를 세밀하게 하자..
properties.yml
# typealias 설정
type-aliases-package: kr.co.roit.pmis <-패키지내 모든 파일.
type-aliases-package: kr.co.roit.pmis.**.entity # @Alias("alias명") 등록
------------
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'commonServiceImpl':
Unsatisfied dependency expressed through field 'commonMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'commonMapper' defined in file [D:\roi_framework\workspaces_3\MPMS_JAVA\build\classes\java\main\kr\co\roit\pmis\common\mapper\CommonMapper.class]:
Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]:
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception;
nested exception is org.apache.ibatis.type.TypeException: The alias '' is already mapped to the value 'kr.co.roit.pmis.common.util.Scalr$1'.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'commonMapper' defined in file [D:\roi_framework\workspaces_3\MPMS_JAVA\build\classes\java\main\kr\co\roit\pmis\common\mapper\CommonMapper.class]:
Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]:
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.apache.ibatis.type.TypeException:
The alias '' is already mapped to the value 'kr.co.roit.pmis.common.util.Scalr$1'.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1515)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]:
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception;
nested exception is org.apache.ibatis.type.TypeException: The alias '' is already mapped to the value 'kr.co.roit.pmis.common.util.Scalr$1'.
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]:
Factory method 'sqlSessionFactory' threw exception; nested exception is org.apache.ibatis.type.TypeException:
The alias '' is already mapped to the value 'kr.co.roit.pmis.common.util.Scalr$1'.
Caused by: org.apache.ibatis.type.TypeException: The alias '' is already mapped to the value 'kr.co.roit.pmis.common.util.Scalr$1'.