2017-09-11 20:37

@jounzhang 是说用 dao 对象承载了数据 还没出现问题 ?
还是说开发时没有存在用dao承载数据的问题啊?
----------------------------------
不用 dao 对象承载数据 就没事~

2017-09-08 11:02

@杜福忠 加入俱乐部才能享受哦

2017-09-08 10:41

本周六9月9号晚9点,直播精通jfinal模板引擎
一次直播,彻底精通 jfinal 的 enjoy 模板引擎,错过将是很大损失,大家相互转告

2017-09-08 10:37

dao() 出来的对象, 只能用于查 . 如果做保存,修改等, 就会报错提示,
这样新手在开发阶段就能发现这个问题, 而不是上线后, 被多线程搞死

2017-09-08 10:32

贴控制台 信息, 再打DEBUG , 看第一次请求是在哪一行代码报错的

2017-09-08 10:29

看手册, 功能里面都有说 如何运用在 非WEB项目里

2017-09-06 08:59

@听雨跳舞 直接用: http://www.runoob.com/mongodb/mongodb-java.html

2017-08-31 12:04

看下这个社区是怎么写的吧, 模仿一下
下载福利 jfinal-club:http://www.jfinal.com/club/download

2017-08-30 10:45

json 转换工具 最好使用:
/**
* IJsonFactory 的 jfinal 实现.
*/
public class JFinalJsonFactory implements IJsonFactory {

private static final JFinalJsonFactory me = new JFinalJsonFactory();

public static JFinalJsonFactory me() {
return me;
}

public Json getJson() {
return new JFinalJson();
}
}

2017-08-30 10:42

Model 拥有这些功能:

/**
* Remove attributes of this model.
* @param attrs the attribute names of the model
* @return this model
*/
public M remove(String... attrs) {
if (attrs != null)
for (String a : attrs) {
this.attrs.remove(a);
this.getModifyFlag().remove(a);
}
return (M)this;
}

/**
* Keep attributes of this model and remove other attributes.
* @param attrs the attribute names of the model
* @return this model
*/
public M keep(String... attrs) {
if (attrs != null && attrs.length > 0) {
Config config = getConfig();
Map newAttrs = config.containerFactory.getAttrsMap(); // new HashMap(attrs.length);
Set newModifyFlag = config.containerFactory.getModifyFlagSet(); // new HashSet();
for (String a : attrs) {
if (this.attrs.containsKey(a)) // prevent put null value to the newColumns
newAttrs.put(a, this.attrs.get(a));
if (this.getModifyFlag().contains(a))
newModifyFlag.add(a);
}
this.attrs = newAttrs;
this.modifyFlag = newModifyFlag;
}
else {
this.attrs.clear();
this.getModifyFlag().clear();
}
return (M)this;
}

2017-08-17 11:45

@dear7575
动态管理:
ActiveRecordPluginService管理控制
这个就不用看了, 是业务关联的

2017-08-17 11:44

@dear7575 如果使用:
http://www.jfinal.com/share/236
这个的话: 是在拦截器WebsiteInterceptor:
ME_CONFIGNAME.set(configName);<一般规则是: URL挂参, 登录用户信息, 域名区分, 等 取configName

2017-08-16 16:50

@dear7575
serverName=a.baidu.com
key=a
----------
serverName=b.baidu.com
key=b

如这种吗?
还是挂参的形式?

2017-08-16 09:21

@dear7575 不需要的话, 直接使用最前面的那个方法, 我在代码中已经做注释了, 后面的那个管理类就不需要, 直接走业务