Git Product home page Git Product logo

tengqingya / gen Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 2.0 3.28 MB

Auto generate mybatis formative mysql Template according to mysql CREATE TABLE statements(master branch);auto generate html & js Template(matser&dev branch);using spring framework.(Contact me:qq number 475804848)

Home Page: https://tqyebook.duapp.com/manage/fileUpload.html

Java 23.53% Perl 0.30% HTML 1.86% CSS 13.10% JavaScript 61.21%
generate mybatis mysql html-template java spring-mvc js-template template-engine templates template spring

gen's Introduction

avatar

功能1:

  • 首先,只要有mysql数据库建表语句,如下格式

    CREATE TABLE comment ( COMMENT_ID int(11) NOT NULL AUTO_INCREMENT COMMENT '评论ID(主键)', COMMENT_COMMENTID int(11) NOT NULL COMMENT '父评论ID', COMMENT_CONTENT text NOT NULL COMMENT '评论的内容', COMMENT_PICTURE varchar(300) DEFAULT NULL COMMENT '评论时发布的图片,可上传多张图片', COMMENT_TIME datetime NOT NULL COMMENT '评论时间', COMMENT_TYPE int(11) NOT NULL DEFAULT '2' COMMENT '评论的类型:1 匿名,2 公开,默认为公开', COMMENT_PEOPLEID int(11) DEFAULT '0' COMMENT '评论者ID,默认为非会员用户(即游客)', COMMENT_POINTS int(11) DEFAULT '0' COMMENT '评价打分(-1至5分)', COMMENT_BASICID int(11) NOT NULL COMMENT '(文章、商品...)绑定basicId(外键)', COMMENT_APPID int(11) DEFAULT NULL COMMENT '(文章、商品)绑定的应用编号', COMMENT_FILE_NAME varchar(255) DEFAULT NULL COMMENT '附件文件名称', COMMENT_FILE_PATH varchar(255) DEFAULT NULL COMMENT '附件文件路径', PRIMARY KEY (COMMENT_ID), KEY index2 (COMMENT_BASICID) USING BTREE ) ENGINE=MyISAM AUTO_INCREMENT=78 DEFAULT CHARSET=utf8 COMMENT='评论表' 需要配置下,比如 批量更新语句条件(填的是model的名字) : 这个字段,按照上面的建表语句,没有id只有commentId,所以可以填 commentId (注意这里填的是model里面的字段 直接填写COMMENT_ID或者id或者建表语句中没有的字段 都会报错)

  • 点击上传后,点击开始生成,即可下载model和sql语句。

功能2: 点击开始生成后,页面上会生成一些配置项,这是配置模版文件里面的字段 模版文件可以自定义,生成方式都可以自定义(目前结果只打印在控制台) 第一步选中要生成的radio 第二步点击配置 第三步点击生成(用于生成button、checkbox等)/生成2(用于生成table)

qq:475804848

gen's People

Contributors

tengqingya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gen's Issues

项目引用了com.alibaba:fastjson等1个开源组件,存在4个漏洞,建议升级

大佬,看你这个项目调用了com.alibaba:fastjson等1个开源组件,存在4个安全漏洞,建议你升级下。

漏洞标题:Fastjson <=1.2.68 远程代码执行漏洞
漏洞编号:
漏洞描述:
Fastjson 是Java语言实现的快速JSON解析和生成器,在<=1.2.68的版本中攻击者可通过精心构造的JSON请求,远程执行恶意代码。
漏洞原因:
Fastjson采用黑白名单的方法来防御反序列化漏洞,导致当黑客不断发掘新的反序列化Gadgets类时,发现在autoType关闭的情况下仍然可能可以绕过黑白名单防御机制,造成远程命令执行漏洞。
国家漏洞库信息:https://www.cnvd.org.cn/flaw/show/CNVD-2020-30827
影响范围:(∞, 1.2.69)
最小修复版本:1.2.69
引入路径:
mybatis-gen-parent:[email protected]>com.alibaba:[email protected]

另外3个漏洞 ,信息有点多我就不贴了,你自己看下完整报告:https://www.mfsec.cn/jr?p=a575e7
你对这个issues有任何疑问可以回复我,我能看见哈。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.