0

WebMvcConfigurerAdapter is deprecated of course and I know what to use instead of it. But my question is 'was the replacement not taken care in the recipe'

Similarly I see that OrderImpl class from hibernate is deprecated and was not taken care by recipe.

Randhir Ray
  • 540
  • 5
  • 14
  • What recipe did you run? And what version of OpenRewrite did you use? How did you configure OpenRewrite? All of these might factor in; without these details it's hard to answer your question. – Tim Aug 21 '23 at 13:51
  • We do have a recipe to replace WebMvcConfigurerAdapter specifically: https://docs.openrewrite.org/recipes/java/spring/framework/migratewebmvcconfigureradapter, which is also included with larger migrations such as this one to Spring Boot 3.1: https://docs.openrewrite.org/recipes/java/spring/boot3/upgradespringboot_3_1 – Tim Aug 21 '23 at 13:52
  • I used this documentation https://docs.openrewrite.org/recipes/java/spring/boot3/upgradespringboot_3_1. And I upgraded from spring boot 2.5 to 2.7 first and then from 2.7 to 3.1 , all using open rewrite – Randhir Ray Aug 21 '23 at 15:02
  • I used the Maven plugin and ran the command mvn rewrite:run – Randhir Ray Aug 21 '23 at 15:03
  • We've had a couple of fixes related to spring security the past couple of weeks, which we've just released now. You'll want to try again with rewrite-spring 5.0.8 or higher – Tim Aug 26 '23 at 07:45
  • Curious to hear your issues with hibernate too.. feel free to log an issue on GitHub, that's the easiest way for us to keep track and follow up. – Tim Aug 26 '23 at 07:46

0 Answers0