내용 :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'mybatis.configuration' to org.apache.ibatis.session.Configuration:
Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [@org.springframework.boot.context.properties.NestedConfigurationProperty org.apache.ibatis.session.Configuration]
Action:
Update your application's configuration
applicaion.yml에 configuration을 사용중이 아닌데 선언을 해서 나는 이슈
-해결 전
mybatis:
config-location: classpath:sql/config/mybatis-config.xml
mapper-locations: classpath:sql/mappers/mysql/*Mapper.xml,classpath:sql/mappers/oracle/*Mapper.xml,classpath:sql/mappers/mariabdb/*Mapper.xml,classpath:sql/mappers/mysql/*Mapper.xml,classpath:sql/mappers/mongidb/*Mapper.xml,classpath:sql/mappers/postgres/*Mapper.xml
#mapper-locations: classpath:sql/mappers/*Mapper.xml
configuration:
# map-underscore-to-camel-case: true
# call-setters-on-nulls: true
-해결 후
mybatis:
config-location: classpath:sql/config/mybatis-config.xml
mapper-locations: classpath:sql/mappers/mysql/*Mapper.xml,classpath:sql/mappers/oracle/*Mapper.xml,classpath:sql/mappers/mariabdb/*Mapper.xml,classpath:sql/mappers/mysql/*Mapper.xml,classpath:sql/mappers/mongidb/*Mapper.xml,classpath:sql/mappers/postgres/*Mapper.xml
#mapper-locations: classpath:sql/mappers/*Mapper.xml
# configuration:
# map-underscore-to-camel-case: true
# call-setters-on-nulls: true
'SPRING' 카테고리의 다른 글
jdk 8 -> 17 및 spring 5.3.24 -> 6.0.2 업그레이드 이슈 (0) | 2022.12.16 |
---|---|
spring boot Gradle 버전 이슈 (0) | 2022.12.13 |
sqlSessionFactory location 못찾는 이슈 (0) | 2022.12.11 |
Spring - @Transactional (0) | 2022.10.11 |
Spring - 동적 Property 가져오기 (0) | 2022.08.17 |