6
1

SpringBoot Mybatis 起動時に factoryBeanObjectType エラー

Posted at

起動時に以下のエラーが発生

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

原因

たぶん、Mybatisのバージョンが環境に合わないのが原因
(バグなのか?)

対処

バージョンを変えてみる

エラーになったバージョン.
		<dependency>
		    <groupId>org.mybatis.spring.boot</groupId>
		    <artifactId>mybatis-spring-boot-starter</artifactId>
		    <version>3.0.2</version>
		</dependency>
解決したバージョン.
		<dependency>
		    <groupId>org.mybatis.spring.boot</groupId>
		    <artifactId>mybatis-spring-boot-starter</artifactId>
		    <version>3.0.3</version>
		</dependency>

お試しあれ

6
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
1