Revert "增加qa"
This reverts commit 75cf77466c1eb55651567b799bf1ff85370b3aaa.
This commit is contained in:
parent
c3893c0e39
commit
63ef5fc048
24
qa/pom.xml
24
qa/pom.xml
|
@ -1,24 +0,0 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<artifactId>zheng</artifactId>
|
||||
<groupId>com.zheng</groupId>
|
||||
<version>1.0.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>zheng-qa</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>zheng-qa</name>
|
||||
<url>http://www.zhangshuzheng.cn</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
<module>qa-dao</module>
|
||||
</modules>
|
||||
</project>
|
|
@ -1,29 +0,0 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<artifactId>zheng-qa</artifactId>
|
||||
<groupId>com.zheng</groupId>
|
||||
<version>1.0.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>zheng-qa-dao</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>zheng-qa-dao</name>
|
||||
<url>http://www.zhangshuzheng.cn</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -1,13 +0,0 @@
|
|||
package com.zheng.qa.dao;
|
||||
|
||||
/**
|
||||
* Hello world!
|
||||
*
|
||||
*/
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
System.out.println( "Hello World!" );
|
||||
}
|
||||
}
|
|
@ -1,74 +0,0 @@
|
|||
<?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>
|
||||
|
||||
<!-- 配置文件 -->
|
||||
<properties resource="jdbc.properties"></properties>
|
||||
|
||||
<!-- mysql驱动包 -->
|
||||
<classPathEntry location="${classPathEntry}" />
|
||||
|
||||
<context id="context" targetRuntime="MyBatis3">
|
||||
|
||||
<property name="javaFileEncoding" value="UTF-8"/>
|
||||
|
||||
<!-- 由于beginningDelimiter和endingDelimiter的默认值为双引号("),在Mysql中不能这么写,所以还要将这两个默认值改为**反单引号(`)**,配置如下: -->
|
||||
<property name="beginningDelimiter" value=""/>
|
||||
<property name="endingDelimiter" value=""/>
|
||||
|
||||
<!-- 为生成的Java模型创建一个toString方法 -->
|
||||
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
|
||||
|
||||
<!-- 为生成的Java模型类添加序列化接口,并生成serialVersionUID字段 -->
|
||||
<plugin type="org.mybatis.generator.plugins.SerializablePlugin">
|
||||
<property name="suppressJavaInterface" value="false"/>
|
||||
</plugin>
|
||||
|
||||
<!-- 生成一个新的selectByExample方法,这个方法可以接受一个RowBounds参数,主要用来实现分页 -->
|
||||
<plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
|
||||
|
||||
<!-- 生成在XML中的<cache>元素 -->
|
||||
<plugin type="org.mybatis.generator.plugins.CachePlugin">
|
||||
<!-- 使用ehcache -->
|
||||
<property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
|
||||
<!-- 内置cache配置 -->
|
||||
<!--
|
||||
<property name="cache_eviction" value="LRU" />
|
||||
<property name="cache_flushInterval" value="60000" />
|
||||
<property name="cache_readOnly" value="true" />
|
||||
<property name="cache_size" value="1024" />
|
||||
-->
|
||||
</plugin>
|
||||
|
||||
<!-- Java模型生成equals和hashcode方法 -->
|
||||
<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>
|
||||
|
||||
<!-- 生成的代码去掉注释 -->
|
||||
<commentGenerator>
|
||||
<property name="suppressAllComments" value="true" />
|
||||
</commentGenerator>
|
||||
|
||||
<!-- 数据库连接 -->
|
||||
<jdbcConnection driverClass="${jdbc.driver}"
|
||||
connectionURL="${jdbc.url}"
|
||||
userId="${jdbc.username}"
|
||||
password="${jdbc.password}" />
|
||||
|
||||
<!-- model生成 -->
|
||||
<javaModelGenerator targetPackage="${generator.javaModelGenerator.targetPackage}" targetProject="src/main/java" />
|
||||
|
||||
<!-- MapperXML生成 -->
|
||||
<sqlMapGenerator targetPackage="${generator.sqlMapGenerator.targetPackage}" targetProject="src/main/java" />
|
||||
|
||||
<!-- Mapper接口生成 -->
|
||||
<javaClientGenerator targetPackage="${generator.javaClientGenerator.targetPackage}" targetProject="src/main/java" type="XMLMAPPER" />
|
||||
|
||||
<!-- 需要映射的表 -->
|
||||
<table tableName="user" domainObjectName="User">
|
||||
<generatedKey column="id" sqlStatement="MySql" identity="true" />
|
||||
</table>
|
||||
<table tableName="book" domainObjectName="Book">
|
||||
<generatedKey column="id" sqlStatement="MySql" identity="true" />
|
||||
</table>
|
||||
</context>
|
||||
</generatorConfiguration>
|
|
@ -1,9 +0,0 @@
|
|||
jdbc.driver=com.mysql.jdbc.Driver
|
||||
jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true
|
||||
jdbc.username=root
|
||||
jdbc.password=123456
|
||||
|
||||
classPathEntry=D:/mysql-connector-java-5.1.34.jar
|
||||
generator.javaModelGenerator.targetPackage=com.zheng.qa.dao.model
|
||||
generator.sqlMapGenerator.targetPackage=com.zheng.qa.dao.mapper
|
||||
generator.javaClientGenerator.targetPackage=com.zheng.qa.dao.mapper
|
Loading…
Reference in New Issue