Commit 40b90936 by bianpeng

修改目录结构

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