Use bean name applicationTaskExecutor instead of taskExecutor

Proprietary

Spring Boot 3.5 removed the bean name taskExecutor. Where this bean name is used, the recipe replaces the bean name to applicationTaskExecutor. This also includes instances where the developer provided their own bean named taskExecutor. This also includes scenarios where JSR-250's @Resource annotation is used.

io.moderne.java.spring.boot3.ReplaceTaskExecutorNameByApplicationTaskExecutorName
mod run . --recipe=io.moderne.java.spring.boot3.ReplaceTaskExecutorNameByApplicationTaskExecutorName

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Add or update annotation attribute org.springframework.beans.factory.annotation.Qualifier
  2. Add or update annotation attribute org.springframework.context.annotation.Bean
  3. Add or update annotation attribute jakarta.annotation.Resource
  4. Replace taskExecutor with applicationTaskExecutor