Home > front end >  The idea with mybatis generator reverse build the null pointer.
The idea with mybatis generator reverse build the null pointer.

Time:12-23

Problem: the idea of mybatis generator reverse build a null pointer,

Pom:
Xsi: schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" & gt;
4.0.0 & lt;/modelVersion>
Com. Jcht
Ssm
War
1.0 - SNAPSHOT
SSM Maven Webapp
http://maven.apache.org


Junit
Junit
3.8.1 & lt;/version>
Test



Ssm


Org. Mybatis. Generator
Mybatis generator - maven - plugin
1.3.2 & lt;/version>

True
True





GeneratorConfig. XML with local DTD file

<? The XML version="1.0" encoding="utf-8"?>




Driver
ConnectionURL="${JDBC. ConnectionURL}"
UserId="${JDBC. UserId}"
Password="${JDBC. Password}" & gt;

True, the JDBC DECIMAL and NUMERIC types to Java. Math., BigDecimal
- & gt;


TargetProject="SRC/main/Java" & gt;

TargetProject="SRC/main/Java" & gt;

Type="ANNOTATEDMAPPER", generate Java Model and annotation-based Mapper object
Type="MIXEDMAPPER", generated based on the annotation of the Java Model and the corresponding object Mapper
Type="XMLMAPPER", generated SQLMap XML file and independent Mapper interfaces
- & gt;
TargetProject="SRC/main/Java" type="XMLMAPPER & gt;"

EnableDeleteByExample="false" enableSelectByExample="false"
SelectByExampleQueryId="true" & gt;

EnableCountByExample="false" enableUpdateByExample="false"
EnableDeleteByExample="false" enableSelectByExample="false"
SelectByExampleQueryId="false" & gt;




The generator. The properties

JDBC. DriverLocation=E: \ \ program Files \ \ mysql connector - Java - 5.1.32. Jar
JDBC. DriverClass=com. Mysql. JDBC. Driver
JDBC. ConnectionURL=JDBC: mysql://localhost: 3306/demo? UseUnicode=true& CharacterEncoding=utf-8 & amp; ZeroDateTimeBehavior=convertToNull
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related