10 Star 19 Fork 20

暖暖的阳光 / aicode-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

AI-Code模板仓库

项目介绍

aicode的各个框架的仓库,通过不同的目录来分开管理

安装教程

模板将根据aicode项目中构建时自动选择模板下载,这个仓库仅存放模板框架

运行方法:

请修改项目中的jdbc.properties 文件将数据库链接修改成自己的数据地址即可 如:jdbc.url=jdbc:mysql://192.168.10.250:3306/ai_code_simple?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=round&allowMultiQueries=true 前提是执行了ai-code.sql 脚本,执行后会有原始数据被导入,用于生成过程中的必要数据,请务必保证数据完整未被修改

新模板命名

最外层目录命名如下: {框架名 版本号}-{框架名}-{框架名} 例如: springcloud1.5.13-redis-swagger-lombok springcloud2.1.5-redis-swagger-lombok

编写模板说明:

模板采用freemarker 模板可以拿到如下数据: ${projectName} //项目英文名 ${model} //模块中的模型 -> ${basePackage}.${model}.service ${module} //模块 一个项目的模块化 不参与java的包定义只是项目管理分离办法

${basePackage} //包名

${table} //表对象 ${tableName} //表名

${classes} //类信息对象 集合 ${class} //类对象 ${className} //类名 ${classNameLower} //类名小写

${columns} //列对象 集合 ${pkColumns} //主键数据信息 ${notPkColumns} //非主键数据信息

${fields} //类属性 集合 ${pkFields} //主键数据信息 ${notPkFields} //非主键主键数据信息

${notes} //类注释 ${copyright} //项目版权 ${author} //作者

使用说明

FreeMarker 的内建函数有: chunk, is_date, last, root, j_string, round, contains , is_hash, long, float, ends_with, namespace, matches, time, values, seq_last_index_of, uncap_first, byte, substring, is_transform, web_safe, groups, seq_contains, is_macro, index_of, word_list, int, is_method, eval, parent, xml, number, capitalize, if_exists, rtf, node_type, double, is_directive, url, size, default, floor, ceiling, is_boolean, split, node_name, is_enumerable, seq_index_of, is_sequence, sort, is_node,
sort_by, left_pad, cap_first, interpret, children, node_namespace, chop_linebreak, date, short, last_index_of, is_collection, ancestors, length, trim, datetime, is_string, reverse, c, keys, upper_case, js_string, has_content, right_pad, replace, is_hash_ex, new, is_number, lower_case, is_indexable, string, exists, html, first

  1. xxxx
  2. xxxx
  3. xxxx

空文件

简介

aicode的各个框架的仓库,通过不同的目录来分开管理 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/helixin/aicode_template.git
git@gitee.com:helixin/aicode_template.git
helixin
aicode_template
aicode-template
dev

搜索帮助