4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gradle の mybatis-generator-plugin で、MapperAnnotationPlugin が無いって言われる

Last updated at Posted at 2018-02-21

gradle の mybatis-generator-plugin 使ったとき、mybatis の generatorConfig.xml に plugins 定義に

<plugin type="org.mybatis.generator.plugins.MapperAnnotationPlugin" />

を書いても見つからないってエラーになるときは

dependencies で mybatis-generator-core の version 上書く

build.gradle
dependencies {
 ...
 mybatisGenerator group: 'org.mybatis.generator', name: 'mybatis-generator-core', version: '1.3.6'
}

以上です

また、ほかのも上書ける

build.gradle
dependencies {
 ...
 mybatisGenerator group: 'mysql', name: 'mysql-connector-java', version: '5.1.45'
 mybatisGenerator group: 'tk.mybatis', name: 'mapper', version: '3.4.2'

4
2
0

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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?