Home > other >  Spring drools rules file didn't execute
Spring drools rules file didn't execute

Time:01-31




I create a drools project, the following code is to be able to smooth implementation:

Order the Order=new Order ();
Order. Elegantly-named setName (" zhang ");
Order. SetSumprice (100);
KSession. Insert (order);
KSession. FireAllRules ();
System. The out. Println (order. GetDiscountPercent ());

But I integration after spring, the same code, debug, kSession also have value, executed, console, does not have any fault, but did not perform rules file, as if just can't find a rule definition file,

Which eldest brother can know?

CodePudding user response:


Encounter the same problem, can you solve it

CodePudding user response:

Encounter the same problem, can you solve it
  • Related