当前位置: 首页 > news >正文

互联网网站开发创业计划书广告联盟平台

互联网网站开发创业计划书,广告联盟平台,装饰设计公司资质,织梦网站后台空白在企业级开发中、我们经常会有编写数据库表结构文档的时间付出,关于数据库表结构文档状态:要么没有、要么有、但都是手写、后期运维开发,需要手动进行维护到文档中,很是繁琐,这里推荐一个开源项目:screw gi…

在企业级开发中、我们经常会有编写数据库表结构文档的时间付出,关于数据库表结构文档状态:要么没有、要么有、但都是手写、后期运维开发,需要手动进行维护到文档中,很是繁琐,这里推荐一个开源项目:screw
gitee地址:https://gitee.com/leshalv/screw

使用流程:

1.pom依赖

<dependencies><!--mysql--><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>8.0.26</version></dependency><!-- HikariCP连接池 --><dependency><groupId>com.zaxxer</groupId><artifactId>HikariCP</artifactId><version>3.4.5</version></dependency><!-- screw核心 --><dependency><groupId>cn.smallbun.screw</groupId><artifactId>screw-core</artifactId><version>1.0.5</version></dependency>
</dependencies>

2.具体代码

import cn.smallbun.screw.core.Configuration;
import cn.smallbun.screw.core.engine.EngineConfig;
import cn.smallbun.screw.core.engine.EngineFileType;
import cn.smallbun.screw.core.engine.EngineTemplateType;
import cn.smallbun.screw.core.execute.DocumentationExecute;
import cn.smallbun.screw.core.process.ProcessConfig;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;import javax.sql.DataSource;
import java.util.ArrayList;public class ScrewGenerator {public static void main(String[] args) {//数据源HikariConfig hikariConfig = new HikariConfig();hikariConfig.setDriverClassName("com.mysql.cj.jdbc.Driver");hikariConfig.setJdbcUrl("jdbc:mysql://127.0.01:3306/test?useSSL=false&serverTimezone=UTC");hikariConfig.setUsername("root");hikariConfig.setPassword("123456");//设置可以获取tables remarks信息hikariConfig.addDataSourceProperty("useInformationSchema", "true");hikariConfig.setMinimumIdle(2);hikariConfig.setMaximumPoolSize(5);DataSource dataSource = new HikariDataSource(hikariConfig);//生成配置EngineConfig engineConfig = EngineConfig.builder()//生成文件路径.fileOutputDir("C:\\Users\\Lenovo\\Desktop\\something")// 打开目录 设置为true执行完代码后会自动打开对应路径文件夹.openOutputDir(true)//生成类型//HTML(".html", "documentation_html", "HTML文件"),//WORD(".doc", "documentation_word", "WORD文件"),//MD(".md", "documentation_md", "Markdown文件");.fileType(EngineFileType.WORD)//自定义文件名称.produceType(EngineTemplateType.freemarker)//自定义文件名称.fileName("自定义文件名称").build();//自定义文件名称ArrayList<String> ignoreTableName = new ArrayList<>();ignoreTableName.add("test_user");ignoreTableName.add("test_group");//忽略表前缀ArrayList<String> ignorePrefix = new ArrayList<>();ignorePrefix.add("test_");//忽略表后缀ArrayList<String> ignoreSuffix = new ArrayList<>();ignoreSuffix.add("_test");ProcessConfig processConfig = ProcessConfig.builder()//忽略表名.ignoreTableName(ignoreTableName)//忽略表前缀.ignoreTablePrefix(ignorePrefix)//忽略表后缀.ignoreTableSuffix(ignoreSuffix).build();//配置Configuration config = Configuration.builder()//版本.version("1.0.0")//描述.description("数据库设计文档生成")//数据源.dataSource(dataSource)//生成配置.engineConfig(engineConfig)//生成配置.produceConfig(processConfig).build();//执行生成new DocumentationExecute(config).execute();System.out.println("生成成功");}
}

3.效果

根据这个配置修改生成的文件类型

//HTML(“.html”, “documentation_html”, “HTML文件”),
//WORD(“.doc”,“documentation_word”, “WORD文件”),
//MD(“.md”, “documentation_md”,“Markdown文件”);

在这里插入图片描述

http://www.hkea.cn/news/9783/

相关文章:

  • 网站建设费应怎样做会计分录国内搜索引擎排名第一
  • 网站网页切换怎么做的网站app开发公司
  • 许昌网站建设汉狮怎么样营销手段和营销方式
  • 网站按钮psd网站内容优化怎么去优化呢
  • 温州外贸网站建设培训网站制作
  • 接网站制作搜盘网
  • 东海县网站建设seo站长之家
  • 更改了网站关键词后要怎么做营销推广投放
  • 网站建设文档模板东莞网站优化关键词排名
  • 怎么建立一个网站里面可以查询资料google怎么推广
  • 网站积分的作用推广公司有哪些公司
  • 大连网站建设意动科技seo公司官网
  • 莱芜网站建设费用google关键词规划师
  • wordpress增加背景图片成都关键词优化服务
  • wordpress 建站简单吗国际时事新闻最新消息
  • 做网站要学些什么湖南专业seo公司
  • 做触屏网站深圳百度代理
  • 加工平台翻译搜索引擎优化的简称
  • wordpress去除 版权信息菏泽资深seo报价
  • vue做的网站有什么鹤壁网站seo
  • 阿里巴巴网站建设分析天津海外seo
  • 网站空间什么意思产品软文模板
  • 信阳市商务局网站加油站建设公告河北百度seo点击软件
  • 对外宣传网站建设方案搜资源
  • 网站建设自学网网站做优化
  • 最全的ppt模板网站微信管理
  • 成都房产网房天下整站优化快速排名
  • 与电子商务网站建设有关实训报告外贸推广公司
  • 在安阳想建个网站怎么做百度最新收录方法
  • 乐平网站深圳网站优化推广