jfinal有没有权限功能??

jfinal有没有权限和角色功能??

评论区

JFinal

2018-04-04 10:26

jfinal 定位于 MVC + ORM 框架,没有这类功能

但周边很多 jfinal 开源项目是有这个功能的,在这里搜索一下:
https://gitee.com/search?utf8=%E2%9C%93&search=jfinal&group_id=&project_id=&type=

jflyx

2018-04-04 10:45

@JFinal primaryKey of table "SYS_IOT_OVER_70794" required by active record pattern 生成实体类报这个是什么错误?

JFinal

2018-04-04 11:15

@jflyx SYS_IOT_OVER_70794 这张表没有主键,添加上主键即可

如果不需要生成这张表的 model ,用 addExludedTable(...) 或者继承 MetaBuilder 覆盖 isSkipTable 方法去实现

jflyx

2018-04-04 11:27

@JFinal但是我数据库没有这个表啊

JFinal

2018-04-04 11:33

@jflyx 系统默认有这些表,jfinal 通过反射读到了这些表,但无法区分是你自己建的还是系统默认的,mysql 就不会

jflyx

2018-04-04 11:34

@JFinal 用addExcludedTable去掉也没有用

jflyx

2018-04-04 11:34

@JFinal 我连的是orcle的

jflyx

2018-04-04 11:38

@JFinal要怎么去掉??

jflyx

2018-04-04 14:34

@JFinal Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: ORA-00911: 无效字符

at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:102)
at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:262)
at com.rip.model._JFinalDemoGenerator.main(_JFinalDemoGenerator.java:70)
Caused by: java.sql.SQLException: ORA-00911: 无效字符

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:113)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:754)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:210)
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:804)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1051)
at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:845)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1156)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1315)
at com.alibaba.druid.pool.DruidPooledStatement.executeQuery(DruidPooledStatement.java:140)
at com.jfinal.plugin.activerecord.generator.MetaBuilder.buildColumnMetas(MetaBuilder.java:222)
at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:97)
... 2 more

热门反馈

扫码入社