-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何导入pom.xml里面 #4
Comments
`
` |
请问是哪个类找不到呢?或者你在maven本地仓储看下这个依赖是否已经下载成功呢? |
@itfsw 是我导入姿势不对吗? |
你好我参照你的配置,然后从中央库重新更新了依赖,重新运行是没有问题的啊: <!-- mybatis-generator 自动代码插件 -->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.5</version>
<configuration>
<!-- 配置文件 -->
<configurationFile>src/main/resources/excludes/mybatis-generator.xml</configurationFile>
<!-- 允许移动和修改 -->
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<dependencies>
<!-- jdbc 依赖 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.40</version>
</dependency>
<dependency>
<groupId>com.itfsw</groupId>
<artifactId>mybatis-generator-plugin</artifactId>
<version>1.0.9</version>
</dependency>
</dependencies>
</plugin> <!--导入属性配置 -->
<context id="test" targetRuntime="MyBatis3">
<!-- 插件 -->
<!-- Table 前缀插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.TableSuffixPlugin">
<property name="suffix" value="DB1"/>
</plugin>
<!-- ......... -->
</context> |
问题找到了,在源码看到了
必须使用mybatis3 另外,可以增加个去掉前缀吗? 某些表的前缀去除 |
@itfsw 插件在pom.xml 会提示找不到类。可能是我IDEA 问题。 |
好的,后期会逐渐完善插件,感谢你的建议。 |
Table重命名插件已实现你所需要的功能,请测试使用,感谢你的建议Mybatis Generator Plugin Realease 1.0.10; |
@itfsw 问一个问题,能生成中文注释么? |
No description provided.
The text was updated successfully, but these errors were encountered: