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>
使用新版SpringBoot技术结合Uniapp,完成仿抖音短视频项目
了解课程