mybatis generator 错误:Unsupported major.minor version 52.0

JC. Lin 2017-08-25 11:02:52
Unexpected error while running MyBatis Generator.
com/microsoft/sqlserver/jdbc/SQLServerDriver : Unsupported major.minor version 52.0


generatorConfig.xml 配置
<generatorConfiguration>
<!-- <properties resource="conn.properties" /> -->

<classPathEntry location="D:\MyEclipseWorking\Scm\WebRoot\WEB-INF\lib\sqljdbc42.jar" />
<!-- 指定运行环境是mybatis3的版本 -->
<context id="DB2Tables" targetRuntime="MyBatis3">
<commentGenerator>
<!-- 是否取消注释 -->
<property name="suppressAllComments" value="true" />
<!-- 是否生成注释代时间戳 -->
<property name="suppressDate" value="true" />
</commentGenerator>
<!-- jdbc 连接信息 -->
<jdbcConnection driverClass="com.microsoft.sqlserver.jdbc.SQLServerDriver"
connectionURL="jdbc:sqlserver://127.0.0.1:1433;databaseName=Scm;"
userId="sa" password="root">
</jdbcConnection>

<javaTypeResolver>
<property name="forceBigDecimals" value="false"/>
</javaTypeResolver>

<!-- targetPackage指定模型在生成在哪个包 ,targetProject指定项目的src, -->
<javaModelGenerator targetPackage="cn.lin.test2.entity" targetProject="src">
<!-- 去除字段前后空格 -->
<property name="trimStrings" value="true" />
</javaModelGenerator>
<!-- 指定dao类生成在哪个包 -->
<sqlMapGenerator targetPackage="cn.lin.test2.mapper" targetProject="src">
<property name="enableSubPackages" value="true"/>
</sqlMapGenerator>
<javaClientGenerator targetPackage="cn.lin.test2.dao" type="XMLMAPPER" targetProject="src" />

<table tableName="Dept" domainObjectName="Dept"
enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false"
enableSelectByExample="false"
selectByExampleQueryId="false"/>
</context>
</generatorConfiguration>
...全文
433 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
文文可以吗 2017-08-25
  • 打赏
  • 举报
回复
教我...........

34,576

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧