关于IDEA中Screw(自动生成数据库表文档)学习及使用笔记

在pom.xml文件中做如下配置

<build>
        <plugins>
        <plugin>
            <groupId>cn.smallbun.screw</groupId>
            <artifactId>screw-maven-plugin</artifactId>
            <version>1.0.5</version>
            <!--数据库链接 各自配置-->
            <dependencies>
            <dependency>
                <groupId></groupId>
                <artifactId></artifactId>
                <version></version>
            </dependency>
            </dependencies>
            <configuration>
                <!--数据库配置 各自配置-->
                <driverClassName></driverClassName>
                <jdbcUrl></jdbcUrl>
                <username></username>
                <password></password>
                <!--screw配置-->
                <fileType>WORD</fileType>
                <title>数据库文档</title>
                <fileName>住房补贴系统数据库设计</fileName>
                <description>数据库结构说明</description>
                <version>${project.version}</version>
                <openOutputDir>false</openOutputDir>
                <produceType>freemarker</produceType>
            </configuration>
            <executions>
                <execution>
                    <phase>compile</phase>
                    <goals>
                        <goal>run</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
    </build>

双击screw进行文档的生成

 

生成后文档在当前项目新生成的doc目录下

 * 
                <fileType>WORD</fileType> 此处的值也可以是HTML以生成HTML文档

效果展示下图

 学自b站

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值