通用mapperPlugin插件找不到
問題描述:當(dāng)mapper-spring-boot-starter的版本為2.0.1時(shí),不會(huì)去下載mapper包。這時(shí)如果在xml中寫<plugin type="tk.mybatis.mapper.generator.MapperPlugin"></plugin>會(huì)報(bào)找不到class錯(cuò)誤。
老師,這里時(shí)需要我們手動(dòng)去下載mapper包還是有其他的解決的方法?
問題描述:當(dāng)mapper-spring-boot-starter的版本為2.0.1時(shí),不會(huì)去下載mapper包。這時(shí)如果在xml中寫<plugin type="tk.mybatis.mapper.generator.MapperPlugin"></plugin>會(huì)報(bào)找不到class錯(cuò)誤。
老師,這里時(shí)需要我們手動(dòng)去下載mapper包還是有其他的解決的方法?
2018-04-11
舉報(bào)
2018-08-16
版本太高換成1.2.4
2018-07-14
同樣的問題
2018-05-08
為什么,我添加了還是報(bào)找不到MapperPlugin 這個(gè)類啊!
2018-04-17
????加上這些應(yīng)該就沒問題了
<!--MySQL JDBC驅(qū)動(dòng) -->
?? ??? ?<dependency>
?? ??? ??? ?<groupId>mysql</groupId>
?? ??? ??? ?<artifactId>mysql-connector-java</artifactId>
?? ??? ??? ?<scope>runtime</scope>
?? ??? ?</dependency>
?? ??? ?<!--MyBatis 及 插件依賴 -->
?? ??? ?<dependency>
?? ??? ??? ?<groupId>org.mybatis.spring.boot</groupId>
?? ??? ??? ?<artifactId>mybatis-spring-boot-starter</artifactId>
?? ??? ??? ?<version>1.3.1</version>
?? ??? ?</dependency>
?? ??? ?<dependency>
?? ??? ??? ?<groupId>tk.mybatis</groupId>
?? ??? ??? ?<artifactId>mapper</artifactId>
?? ??? ??? ?<version>3.4.2</version>
?? ??? ?</dependency>
?? ??? ?<dependency>
?? ??? ??? ?<groupId>com.github.pagehelper</groupId>
?? ??? ??? ?<artifactId>pagehelper</artifactId>
?? ??? ??? ?<version>4.2.1</version>
?? ??? ?</dependency>