-
Hello we have a Spring Boot project which uses JDBC. So we have certain constructors like public Foo(NamedParameterJdbcOperations template) { initialization code } we want to change it to public Foo(NamedParameterJdbcTemplate template ) {
add a extra instance variable for some custom stuff
} So we want to change the type of the constructor argument and add an extra instance variable to do some stuff. Can anyone please guide me how to achieve this ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @amit2103 ; From your question it's not immediately clear to me what you have tried already, or where you are struggling. We have quite some docs on recipe authoring over at https://docs.openrewrite.org/authoring-recipes Could you let me know which of the above resources you've already gone over, and where you have remaining questions? |
Beta Was this translation helpful? Give feedback.
Hi @amit2103 ; From your question it's not immediately clear to me what you have tried already, or where you are struggling. We have quite some docs on recipe authoring over at https://docs.openrewrite.org/authoring-recipes
In addition to that we have a rewrite-recipe-starter if you want to get started writing your own recipe.
Could you let me know which of the above resources you've already gone over, and where you have remaining questions?