简体   繁体   English

将Optaplanner与现有Java应用程序集成

[英]Integrate Optaplanner with existing Java application

Our existing application is build in Java using Spring, REST and MySQL. 我们现有的应用程序是使用Spring,REST和MySQL在Java中构建的。 We now want to integrate Optaplanner in our system using Eclipse IDE. 现在,我们希望使用Eclipse IDE将Optaplanner集成到我们的系统中。 Can someone please provide a reference link to get started? 有人可以提供参考链接以开始使用吗? The documentation on their website is not helping much. 他们网站上的文档没有太大帮助。

If you're using maven, just add the maven dependency (see docs or download page) and refresh eclipse, otherwise add the jars from the bin dir from the distribution zip in eclipse. 如果您使用的是maven,只需添加maven依赖项(请参阅文档或下载页面)并刷新eclipse,否则从eclipse中的发行版zip的bin目录中添加jar。

Then look at the quick start tutorail in the docs. 然后查看文档中的快速入门tutorail。 We don't have a spring BeanFactory wrapper yet for Solver(Factory), but that should be trivial to write, so you can inject a Solver(Factory). 我们还没有用于Solver(Factory)的Spring BeanFactory包装器,但是编写起来应该很简单,因此您可以注入Solver(Factory)。 Or just create the SolverFactory and Solver in your java code. 或者只是在您的Java代码中创建SolverFactory和Solver。 The domain objects are probably the same as your REST annotated objects. 域对象可能与REST注释对象相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM