报错Sql already exists with key : sysauditByDutydept Template

你好,我遇到个问题。

我用arp.addSqlTemplate 追加了相同的SQL模版,然后arp.start() 的时候报错,错误信息如下,有没办法清空模版以便我重新加载呢,或有没其它办法

com.jfinal.template.stat.ParseException: Sql already exists with key : sysauditByDutydept Template: "/com/landray/kmss/odm/sql/sysaudit.sql". Line: 2 at com.jfinal.plugin.activerecord.sql.SqlDirective.exec(SqlDirective.java:60) at com.jfinal.template.stat.ast.StatList.exec(StatList.java:68) at com.jfinal.template.stat.ast.Include.exec(Include.java:139) at com.jfinal.template.stat.ast.StatList.exec(StatList.java:68) at com.jfinal.template.Template.render(Template.java:79) at com.jfinal.template.Template.renderToString(Template.java:99) at com.jfinal.plugin.activerecord.sql.SqlKit.parseSqlTemplate(SqlKit.java:95) at com.jfinal.plugin.activerecord.ActiveRecordPlugin.start(ActiveRecordPlugin.java:224) at org.apache.jsp.odm.other.softwaremodifyapply.ekp_005fscbc_005fsoftware_005fmodify_005fapply.ekpScbcSoftwareModifyApply_005fshow_jsp._jspService(ekpScbcSoftwareModifyApply_005fshow_jsp.java:69) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at 

评论区

小智zaki

2018-08-31 16:38

对了,再咨询下,有没办法获取到系统中已定义的ActiveRecordPlugin实例

热门反馈

扫码入社