我的mybatis-generator配置文件如下:
<?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="postgresql-9.2-1002.jdbc4.jar" />
<context id="PostgreTables" targetRuntime="MyBatis3">
<commentGenerator>
<property name="suppressAllComments" value="true" />
</commentGenerator>
<jdbcConnection driverClass="org.postgresql.Driver" connectionURL="jdbc:postgresql://localhost:5432/orm” userId="fdx" password="password" />
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<javaModelGenerator targetPackage="com.ameliore.solution.module" targetProject="orm">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<sqlMapGenerator targetPackage=“com.ameliore.solution.module” targetProject="orm">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="mapper.module” targetProject="orm">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<table schema="ores" tableName="t_dokumen_pendukung" domainObjectName="DokumenPendukung">
<property name="useActualColumnNames" value="false"/>
</table>
</context>
</generatorConfiguration>
当我使用命令“java -jar mybatis-generator-core-1.3.2.jar -configfile ORM-config.xml -overwrite”运行nybatis-generator时,生成器的结果是
XML Parser Errors occurred:
XML Parser Error on line 15: Element type "jdbcConnection" must be followed by either attribute specifications, ">" or "/>".
在我的Mac上,我正在使用java 8
任何人都有像我这样的错误吗?