Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 .drl 中修改规则时,修改不生效。是否可以在不重新启动服务器(tomcat)的情况下修改(即热部署) drools 中的规则(.drl ) ?我该如何解决这个问题?
是的 - 有几种方法 - 但第一个问题是你首先如何加载规则 - 你是从类路径加载它们吗?或磁盘上的某个地方?有一个 KnowledgeAgent(和 RuleAgent)类可以从各种来源加载它,并在您更改 drl 文件时检测更改并自动为您应用它们。