我在我的口水文件中写了下面的部分。我没有收到任何编译错误,但它没有在运行时执行。我们可以从流口水的属性文件中读取数据,还是我们有任何替代方法可以从配置文件中读取数据。你能帮我解决这个问题吗?
Drool 中添加的一段代码:
InputStream fileInput = Thread.currentThread().getContextClassLoader().getResourceAsStream("rules.properties");
Properties properties = new Properties();
System.out.println("Client From Properties : "+fileInput);
properties.load(fileInput);
fileInput.close();