2018-06-07 16:01
@youz12025 注意下面的配置:
log4j.appender.file.File=./jfinal_demo_for_maven.log
这个最好改成绝对路径,例如:
D:/mylog/demo.log
否则你可能找不到这个文件在哪里了,如果是开发工具中启动的,可以刷新一下项目根目录找到这个文件
2018-06-07 10:59
@酷儿2016 DruidPlugin 在启动以后,可以通过 getDataSource() 得到一个 DruidDataSource 类型的对象,注意得到时要先强调转换成 DruidDataSource
强转以后,对这个 DruidDataSource 对象调用其中的一些 setter 方法,其中应该有设置超时的配置方法
2018-06-07 10:38
如果你希望改变这个规则,可以指定前缀:
getModel(Tblog.class, "other")
那么 name 可以是 name="other.id"
你还要以不用前缀,要这样用:
getModel(Tblog.class, "")
也就是让将缀为空字符串
你还可以跳过转换错误:
getModel(Tblog.class, true)
或者 getModel(Tblog.class, "other", true) 或者 getModel(Tblog.class, "", true)
最后,建议尽可能使用 getBean(...) 而不是 getModel, 前提是你的 model 生成过 setter 方法,生成器在首页的 jfinal demo 中有
2018-06-07 10:13
@fmpoffice jfinal 3.5 打算添加一个 AuthKit,里面添加 hasPermission 与 hasRole, 一个工具类搞定所有