Skip to content

ken-xue/ddd-framework-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ddd-framework-maven-plugin

Quick start

1.create you database table

2.import maven dependency

<plugin>
    <groupId>io.ddd.framework</groupId>
    <artifactId>ddd-framework-maven-plugin</artifactId>
    <version>1.0.0</version>
    <configuration>
        <dataSource>
            <driverName>com.mysql.cj.jdbc.Driver</driverName>
            <url>jdbc:mysql://127.0.0.1:3306/ddd_framework</url>
            <username>root</username>
            <password>123456</password>
        </dataSource>
        <config>
            <absolutePath>/Users/biaoyang/IdeaProjects/ddd/ddd-framework/</absolutePath>
            <tablePrefixes>sys_,biz_</tablePrefixes>
            <moduleName>sys</moduleName>
            <basePackageName>io.ddd.framework</basePackageName>
            <tableNames>sys_user,sys_menu</tableNames>
            <excludeFields>id,uuid,creator,modifier,gmt_create,gmt_modified,deleted</excludeFields>
            <author>麦奇</author>
            <email>biaogejiushibiao@outlook.com</email>
        </config>
    </configuration>
</plugin>

3.execute cmd

mvn ddd-framework:generate

4.clean last time code

mvn ddd-framework:delete

5.perfect ! success generate code in you project path ! enjoy ! maven plugin source code see

Releases

No releases published

Packages

No packages published

Languages