Migrating Spring drools-context.xml from 5.0 to 6.0

前端 未结 1 2002
广开言路
广开言路 2021-01-27 06:17

In drools 6, there have been some changes to the Spring integration, such that the resources are no longer specified.

    
        

        
1条回答
  •  无人及你
    2021-01-27 06:21

    Note that in Drools 6, drl files to be loaded should be placed under main/resources folder in your maven project. During runtime say in Tomcat, drl files will appear under /WEB-INF/classes folder.

    Sample xml config:

    
    
    
    
        
            
                
                
                
                    
                        
                    
                
            
        
    
    
    
    

    Instead of drools-spring artifact use kie-spring. something like:

    
        org.kie
        kie-spring
        ${org.drools.version}
    
    
        org.kie
        kie-api
        ${org.drools.version}
                           
    
        org.drools
        drools-core
        ${org.drools.version}
    
    

    0 讨论(0)
提交回复
热议问题