设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

JFinal-ext2 v2.0.1发布,让你更省心

2016-1-5 21:32| 发布者: joejoe0332| 查看: 1887| 评论: 0|原作者: oschina|来自: oschina

摘要: JFinal-ext2 v2.0.1 发布,更新内容自动 mapping 生成的 model;在 model 中添加了一个常量 table,为对应的表名,便于在手写 sql 时候使用;?12345678/***GeneratedbyJFinal.*/@SuppressWarnings("serial")publicclassZ ...

JFinal-ext2 v2.0.1 发布,更新内容

  1. 自动 mapping 生成的 model;

  2. 在 model 中添加了一个常量 table,为对应的表名,便于在手写 sql 时候使用;

1
2
3
4
5
6
7
8
/**
 * Generated by JFinal.
 */
@SuppressWarnings("serial")
public class Zcq extends BaseZcq<Zcq> {
    public static final Zcq dao = new Zcq();
    public static final String table = "zcq";
}

3. 修改了 cfg.txt 中数据源的配置格式;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#--------------------------------------------------------------------#
#  database Config
1. db.ds: db datasource name, use ',' split. eg :mysql,oracle;数据源 name;
2. db.*.active:ture, use db,* is the ds name;数据源为*的数据源是否激活;
3. db.*.url: db url,* is the ds name;数据源为*的数据库的 url;
4. db.*.user: db username,* is the ds name;数据源为*的数据库用户名;
5. db.*.password: db password,* is the ds name, 数据源为*的数据库密码,已加密
#   use `java -cp druid-xx.jar com.alibaba.druid.filter.config.ConfigTools your_password`
#   generate your encrypt password;使用com.alibaba.druid.filter.config.ConfigTools获得加密密码;
6. db.*.initsize: db pool init size,* is the ds name;数据源为*的连接池初始化大小;
7. db.*.maxactive: db pool maxactive,* is the ds name;数据源为*的连接池最大连接数;
8. db.showsql: ture, show execute sql;是否显示 sql;
#--------------------------------------------------------------------#
db.ds = mysql
db.mysql.active = false
db.mysql.url = testing_host/db
db.mysql.user = 
db.mysql.password = lCzd9geWAuAuJtLhpaG/J+d28H8KiMFAWopxXkYpMNdUai6Xe/LsPqMQeg5MIrmvtMa+hzycdRhWs29ZUPU1IQ==
db.mysql.initsize = 6
db.mysql.maxactive = 100
db.showsql = true

酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部