Commit 40b90936 by bianpeng

修改目录结构

parent 4a417b98
......@@ -3,8 +3,8 @@
</p>
<p align="center">
<a target="_blank" href="https://search.maven.org/search?q=com.github.flying-cattle">
<img alt="Maven Central" src="https://img.shields.io/maven-central/v/com.github.flying-cattle/mybatis-dsc-generator.svg">
<a target="_blank" href="https://search.maven.org/search?q=com.gitee.flying-cattle">
<img alt="Maven Central" src="https://img.shields.io/maven-central/v/com.gitee.flying-cattle/mybatis-dsc-generator.svg">
</a>
<a target="_blank" href="https://www.apache.org/licenses/LICENSE-2.0.html">
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" ></img>
......@@ -17,14 +17,14 @@
# mybatis-dsc-generator
完美集成lombok,swagger的代码生成工具,让你不再为繁琐的注释和简单的接口实现而烦恼:entity集成,格式校验,swagger; dao自动加@ mapper,service自动注释和依赖; 控制器实现单表的增副改查,并集成swagger实现api文档。如果有缘看见,期望得到你的star,very thx.
# 源码地址
- GitHub:https://github.com/flying-cattle/mybatis-dsc-generator
- gitee:https://gitee.com/flying-cattle/mybatis-dsc-generator
- 码云:https://gitee.com/flying-cattle/mybatis-dsc-generator
# MAVEN地址
2.1.0版本是未集成Mybatis-plus版本——源码分支master
``` xml
<dependency>
<groupId>com.github.flying-cattle</groupId>
<groupId>com.gitee.flying-cattle</groupId>
<artifactId>mybatis-dsc-generator</artifactId>
<version>2.1.0.RELEASE</version>
</dependency>
......@@ -32,7 +32,7 @@
3.0.0后的版本是集成了Mybatis-plus版本——源码分支mybatisPlus
``` xml
<dependency>
<groupId>com.github.flying-cattle</groupId>
<groupId>com.gitee.flying-cattle</groupId>
<artifactId>mybatis-dsc-generator</artifactId>
<version>3.0.6.RELEASE</version>
</dependency>
......@@ -59,7 +59,7 @@ CREATE TABLE `user` (
要求必须有表注释,要求必须有主键为id,所有字段必须有注释(便于生成java注释swagger等)。
# 生成的实体类
生成方法参考源码中的:https://github.com/flying-cattle/mybatis-dsc-generator/blob/mybatisPlus/src/test/java/com/flying/cattle/mdg/MyGenerator.java
生成方法参考源码中的:https://gitee.com/flying-cattle/mybatis-dsc-generator/blob/mybatisPlus/src/test/java/com/flying/cattle/mdg/MyGenerator.java
# 生成的实体类
``` java
......
......@@ -4,14 +4,14 @@
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>
<groupId>com.github.flying-cattle</groupId>
<groupId>com.gitee.flying-cattle</groupId>
<artifactId>mybatis-dsc-generator</artifactId>
<version>3.0.7.RELEASE</version>
<packaging>jar</packaging>
<name>mybatis-dsc-generator</name>
<description>According to the database, three layers of code are generated automatically.</description>
<url>https://github.com/flying-cattle/mybatis-dsc-generator</url>
<url>https://gitee.com/flying-cattle/mybatis-dsc-generator</url>
<!-- 证书 -->
<licenses>
<license>
......@@ -27,9 +27,10 @@
</developer>
</developers>
<scm>
<connection>scm:git:git@github.com:flying-cattle/mybatis-dsc-generator.git</connection>
<developerConnection>scm:git:git@github.com:flying-cattle/mybatis-dsc-generator.git</developerConnection>
<url>git@github.com:flying-cattle/mybatis-dsc-generator.git</url>
<connection>scm:git:git@gitee.com:flying-cattle/mybatis-dsc-generator.git</connection>
<developerConnection>scm:git:git@gitee.com:flying-cattle/mybatis-dsc-generator.git</developerConnection>
<url>git@gitee.com:flying-cattle/mybatis-dsc-generator.git</url>
<tag>HEAD</tag>
</scm>
<properties>
......@@ -148,6 +149,17 @@
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
<autoVersionSubmodules>true</autoVersionSubmodules>
<indentSize>4</indentSize>
<useEditMode>true</useEditMode>
<localCheckout>true</localCheckout>
</configuration>
</plugin>
</plugins>
</build>
</project>
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.flying.cattle.mdg.aid
* @Package: com.gitee.flying.cattle.mdg.aid
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.aid;
package com.gitee.flying.cattle.mdg.aid;
/**
* Copyright: Copyright (c) 2019
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.flying.cattle.mdg.aid
* @Package: com.gitee.flying.cattle.mdg.aid
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.aid;
package com.gitee.flying.cattle.mdg.aid;
import java.io.Serializable;
import java.net.ConnectException;
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.flying.cattle.mdg.aid
* @Package: com.gitee.flying.cattle.mdg.aid
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.aid;
package com.gitee.flying.cattle.mdg.aid;
import java.io.Serializable;
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.mybatis.fl.convert
* @Package: com.gitee.mybatis.fl.convert
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.convert;
package com.gitee.flying.cattle.mdg.convert;
/**
* Copyright: Copyright (c) 2019
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
*
* @Package: com.github.mybatis.fl.convert
* @Package: com.gitee.mybatis.fl.convert
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.convert;
package com.gitee.flying.cattle.mdg.convert;
/**
* Copyright: Copyright (c) 2019
......
......@@ -3,11 +3,11 @@
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* @Package: com.github.mybatis.fl.convert
* @Package: com.gitee.mybatis.fl.convert
* @author: flying-cattle
* @date: 2019年4月9日 下午8:09:35
*/
package com.github.flying.cattle.mdg.convert;
package com.gitee.flying.cattle.mdg.convert;
/**
* Copyright: Copyright (c) 2019
......
......@@ -3,11 +3,11 @@
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* @Package: com.github.mybatis.fl.convert
* @Package: com.gitee.mybatis.fl.convert
* @author: flying-cattle
* @date: 2019年4月9日 下午8:06:16
*/
package com.github.flying.cattle.mdg.convert;
package com.gitee.flying.cattle.mdg.convert;
/**
* Copyright: Copyright (c) 2019
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
*
* @Package: com.github.mybatis.fl.convert
* @Package: com.gitee.mybatis.fl.convert
* @author: flying-cattle
* @date: 2019年4月9日 下午8:13:13
*/
package com.github.flying.cattle.mdg.convert;
package com.gitee.flying.cattle.mdg.convert;
import com.github.flying.cattle.mdg.convert.ITypeConvert;
import com.gitee.flying.cattle.mdg.convert.ITypeConvert;
/**
* Copyright: Copyright (c) 2019
*
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.mybatis.fl.entity
* @Package: com.gitee.mybatis.fl.entity
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.entity;
package com.gitee.flying.cattle.mdg.entity;
import java.io.Serializable;
import java.util.HashSet;
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.mybatis.fl.entity
* @Package: com.gitee.mybatis.fl.entity
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.entity;
package com.gitee.flying.cattle.mdg.entity;
import java.io.Serializable;
import lombok.AllArgsConstructor;
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.mybatis.fl.entity
* @Package: com.gitee.mybatis.fl.entity
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.entity;
package com.gitee.flying.cattle.mdg.entity;
import java.io.Serializable;
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.mybatis.fl.entity
* @Package: com.gitee.mybatis.fl.entity
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.entity;
package com.gitee.flying.cattle.mdg.entity;
import java.io.Serializable;
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.mybatis.fl.util
* @Package: com.gitee.mybatis.fl.util
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.util;
package com.gitee.flying.cattle.mdg.util;
import java.sql.Connection;
import java.sql.DriverManager;
......@@ -15,8 +15,8 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import com.github.flying.cattle.mdg.entity.BasisInfo;
import com.github.flying.cattle.mdg.entity.PropertyInfo;
import com.gitee.flying.cattle.mdg.entity.BasisInfo;
import com.gitee.flying.cattle.mdg.entity.PropertyInfo;
/**
* Copyright: Copyright (c) 2019
*
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.mybatis.fl.convert
* @Package: com.gitee.mybatis.fl.convert
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.util;
package com.gitee.flying.cattle.mdg.util;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import com.github.flying.cattle.mdg.entity.BasisInfo;
import com.github.flying.cattle.mdg.entity.ResultJson;
import com.gitee.flying.cattle.mdg.entity.BasisInfo;
import com.gitee.flying.cattle.mdg.entity.ResultJson;
import freemarker.template.Configuration;
import freemarker.template.Template;
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.mybatis.fl.convert
* @Package: com.gitee.mybatis.fl.convert
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.util;
package com.gitee.flying.cattle.mdg.util;
import java.util.List;
import com.github.flying.cattle.mdg.entity.BasisInfo;
import com.github.flying.cattle.mdg.entity.ResultJson;
import com.github.flying.cattle.mdg.entity.PropertyInfo;
import com.gitee.flying.cattle.mdg.entity.BasisInfo;
import com.gitee.flying.cattle.mdg.entity.ResultJson;
import com.gitee.flying.cattle.mdg.entity.PropertyInfo;
/**
* Copyright: Copyright (c) 2019
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.mybatis.fl.util
* @Package: com.gitee.mybatis.fl.util
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.util;
package com.gitee.flying.cattle.mdg.util;
import com.github.flying.cattle.mdg.convert.DateType;
import com.github.flying.cattle.mdg.convert.MySqlTypeConvert;
import com.gitee.flying.cattle.mdg.convert.DateType;
import com.gitee.flying.cattle.mdg.convert.MySqlTypeConvert;
/**
* Copyright: Copyright (c) 2019
*
......
......@@ -14,8 +14,8 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.flying.cattle.mdg.aid.JsonResult;
import com.github.flying.cattle.mdg.aid.PageParam;
import com.gitee.flying.cattle.mdg.aid.JsonResult;
import com.gitee.flying.cattle.mdg.aid.PageParam;
<#if isSwagger=="true" >
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
......
......@@ -9,10 +9,10 @@ package com.flying.cattle.mdg;
import java.sql.SQLException;
import java.util.Date;
import com.github.flying.cattle.mdg.entity.BasisInfo;
import com.github.flying.cattle.mdg.util.EntityInfoUtil;
import com.github.flying.cattle.mdg.util.Generator;
import com.github.flying.cattle.mdg.util.MySqlToJavaUtil;
import com.gitee.flying.cattle.mdg.entity.BasisInfo;
import com.gitee.flying.cattle.mdg.util.EntityInfoUtil;
import com.gitee.flying.cattle.mdg.util.Generator;
import com.gitee.flying.cattle.mdg.util.MySqlToJavaUtil;
/**
* Copyright: Copyright (c) 2019
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment