社区
Web 开发
帖子详情
用mybatis generator连接Mysql自动生成代码的时候出现这个错误~
world7777777
2016-07-30 10:37:43
...全文
432
4
打赏
收藏
用mybatis generator连接Mysql自动生成代码的时候出现这个错误~
[图片]
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
大__淼
2016-08-01
打赏
举报
回复
url加上编码 如url=jdbc:mysql://localhost:3306/bugs?useUnicode=true&characterEncoding=utf8
tony4geek
2016-07-31
打赏
举报
回复
数据库没有找到
阳光越来越暖
2016-07-31
打赏
举报
回复
你换个datebase试试 不要取名叫bugs
jwyzszh
2016-07-30
打赏
举报
回复
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> <generatorConfiguration> <!-- 数据库驱动--> <classPathEntry location="mysql-connector-java-5.1.18-bin.jar"/> <context id="DB2Tables" targetRuntime="MyBatis3"> <commentGenerator> <property name="suppressDate" value="true"/> <!-- 是否去除自动生成的注释 true:是 : false:否 --> <property name="suppressAllComments" value="true"/> </commentGenerator> <!--数据库链接URL,用户名、密码 --> <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/bugs" userId="root" password="root"> </jdbcConnection> <javaTypeResolver> <property name="forceBigDecimals" value="false"/> </javaTypeResolver> <!-- 生成模型的包名和位置--> <javaModelGenerator targetPackage="com.bugs.model" targetProject="src"> <property name="enableSubPackages" value="true"/> <property name="trimStrings" value="true"/> </javaModelGenerator> <!-- 生成映射文件的包名和位置--> <sqlMapGenerator targetPackage="com.bugs.mapper" targetProject="src"> <property name="enableSubPackages" value="true"/> </sqlMapGenerator> <!-- 生成DAO的包名和位置--> <javaClientGenerator type="XMLMAPPER" targetPackage="com.bugs.mapper" targetProject="src"> <property name="enableSubPackages" value="true"/> </javaClientGenerator> <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> <table tableName="Bugs" domainObjectName="Bugs" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> <table tableName="User" domainObjectName="User" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> </context> </generatorConfiguration>
mybatis
-
generator
-
mysql
代码
自动生成
工具
mybatis
-
generator
-
mysql
代码
自动生成
工具里面有具体的描述 https://blog.csdn.net/tnt596/article/details/80279797
mybatis
-
generator
自动生成
代码
(全部文件)
使用
MyBatis
Generator
自动生成
Dao、Bean、Mapping。将
mysql
数据库中的表转换为java中的实体类,接口,和映射文件
使用
Mybatis
Generator
自动生成
Mybatis
相关
代码
(包含
Mysql
与Oracle)
使用
Mybatis
Generator
逆向工程
自动生成
Mybatis
相关
代码
(包含
Mysql
与Oracle)
mybatis
generator
自动生成
代码
mybatis
+
generator
+
mysql
自动生成
代码
Mybatis
Generator
自动生成
代码
demo
mybatis
generator
插件
自动生成
代码
实例,数据库使用
mysql
Web 开发
81,092
社区成员
341,717
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章