[英]How can I set drools.dialect.mvel.strict to false when using KieSessions in Drools 6.5?
I just want to turn off strict-mode.我只想关闭严格模式。 This question has the old way of doing it: disable strict mode in drools .
这个问题有老办法: 在 drools 中禁用严格模式。 I would like to do it in Java or in the kmodule.xml, or a properties file, not in the jvm args if possible.
如果可能,我想在 Java 或 kmodule.xml 或属性文件中执行此操作,而不是在 jvm args 中执行。 Thanks
谢谢
Use the <configuration>
element in kmodule.xml to set properties:使用 kmodule.xml 中的
<configuration>
元素来设置属性:
<kmodule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.drools.org/xsd/kmodule">
<configuration>
<property key="drools.dialect.mvel.strict" value="false" />
</configuration>
...
</kmodule>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.