没有生成对应的文件
来源:4-9 数据层 - 配置数据库逆向生成工具

DDamion
2021-11-29
Mysql8的环境, 也跑成功了,但没有生成对应的文件
<!-- 通用mapper所在目录 -->
<plugin type="tk.mybatis.mapper.generator.MapperPlugin">
<property name="mappers" value="com.example.thrd.my.mapper.MyMapper"/>
</plugin>
<plugin type="org.mybatis.generator.plugins.SerializablePlugin" />
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/imooc?
useUnicode=true&
characterEncoding=utf-8&
useSSL=true&
useJDBCCompliantTimezoneShift=true&
useLegacyDatetimeCode=false&
serverTimezone=Hongkong"
userId="root"
password="930809">
<property name="nullCatalogMeansCurrent" value="true"/>
</jdbcConnection>
<!-- 对应生成的pojo所在包 -->
<javaModelGenerator targetPackage="com.example.thrd.pojo" targetProject="./src/main/java"/>
<!-- 对应生成的mapper所在目录 mapper src/main/resources/mapper -->
<sqlMapGenerator targetPackage="mapper" targetProject="./src/main/resources"/>
<!-- 配置mapper对应的java映射 -->
<javaClientGenerator targetPackage="com.example.thrd.mapper" targetProject="./src/main/java" type="XMLMAPPER"/>
<!-- 数据库表 -->
<table tableName="comment"></table>
<table tableName="fans"></table>
<table tableName="my_liked_vlog"></table>
<table tableName="users"></table>
<table tableName="vlog"></table>
</context>
写回答
4回答
-
风间影月
2021-11-29
额。。。又回复了啥。我完全看不到。估计得24~48小时后才能看到。延迟太大了
00 -
风间影月
2021-11-29
额。。。又回复了啥。我完全看不到。估计得24~48小时后才能看到。延迟太大了
00 -
风间影月
2021-11-29
你的回复收不到哈,我只能接受通知,但是看不到你的回复。现在答疑区都有延迟,我看不到所有内容哈。要不发群里吧
022022-01-01 -
风间影月
2021-11-29
需要使用MySQL8版本的逆向工具。
检查各项配置。
要不群里聊?今天还有人一起讨论这个噢012021-11-29
相似问题