개발자가 된 감자

Invalid value type for attribute 'factoryBeanObjectType': java.lang.String 본문

Error 해결

Invalid value type for attribute 'factoryBeanObjectType': java.lang.String

감자씨 2025. 1. 15. 14:37
728x90

mybatis.logo

 

 

mybatis를 이용한 백엔드 작업 중 해당 오류가 발생했다.

Invalid value type for attribute 'factoryBeanObjectType': java.lang.String

 

 

참조 document

https://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/

 

Introduction – mybatis-spring-boot-autoconfigure

Using the SpringBootVFS The MyBatis-Spring-Boot-Starter provides the SpringBootVFS as an implementation class of VFS. The VFS is used for searching classes (e.g. target class of type alias, type handler class) from an application (or application server). I

mybatis.org

 

 

build.gradle 내에서 mybatis 버전을 3.0.1 -> 3.0.3 으로 변경해주니 정상적으로 작동한다.

build.gradle

// 기존 버전 3.0.1
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.1'
// 변경 후 3.0.3
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
728x90
Comments