最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Move from Optaplanner to Timefold results in Spring error - Stack Overflow

programmeradmin3浏览0评论

We have a scheduling application that is built on Optaplanner (9.42).

I wanted to try it with Timefold and used the Maven upgrade CLI command.

This part of the change worked without errors and I can even compile the project.

However, when starting the application I receive the following error

Receiver class ai.timefold.solver.spring.boot.autoconfigure.TimefoldSolverAutoConfiguration does not define or inherit an implementation of the resolved method 'abstract void postProcessBeanFactory(.springframework.beans.factory.config.ConfigurableListableBeanFactory)' of interface .springframework.beans.factory.config.BeanFactoryPostProcessor.

After the change to Timefold the pom.xml has the following versions in it

<version.ai.timefold.solver>1.16.0</version.ai.timefold.solver>
<version.springframework.boot>3.0.7</version.springframework.boot>

Which package do I need to upgrade to which version, to fix this error?

We have a scheduling application that is built on Optaplanner (9.42).

I wanted to try it with Timefold and used the Maven upgrade CLI command.

This part of the change worked without errors and I can even compile the project.

However, when starting the application I receive the following error

Receiver class ai.timefold.solver.spring.boot.autoconfigure.TimefoldSolverAutoConfiguration does not define or inherit an implementation of the resolved method 'abstract void postProcessBeanFactory(.springframework.beans.factory.config.ConfigurableListableBeanFactory)' of interface .springframework.beans.factory.config.BeanFactoryPostProcessor.

After the change to Timefold the pom.xml has the following versions in it

<version.ai.timefold.solver>1.16.0</version.ai.timefold.solver>
<version..springframework.boot>3.0.7</version..springframework.boot>

Which package do I need to upgrade to which version, to fix this error?

Share Improve this question asked Mar 6 at 9:01 Markus DeibelMarkus Deibel 1,35120 silver badges27 bronze badges 1
  • Looking into this now, will check – Tom Cools Commented Mar 6 at 9:07
Add a comment  | 

1 Answer 1

Reset to default 2

This is an issue with the older Spring version. It was fixed in Spring 6.1 (Spring Boot 3.2+) see: https://github/spring-projects/spring-framework/issues/31476.

Updating your Spring Boot version to something higher than 3.2.x should work. The migration script for Timefold doesn't touch your Spring Boot Version.

发布评论

评论列表(0)

  1. 暂无评论