Some doubts about RowMapper use in JDBC in a Spring Framework application

后端 未结 4 1638
悲哀的现实
悲哀的现实 2021-02-07 10:17

I am studying how to execute query on a database using JDBC in Spring Framework.

I am following this tutorial: http://www.tutorialspoint.com/spring/spring_jdbc_example.h

4条回答
  •  抹茶落季
    2021-02-07 11:01

    So, who call this mapRow method? is it called automatically by the Spring Framework? (because in this example is never called manually...)

    This is automatically called by spring framework. All You need is to specify

    1. Connection parameters,
    2. SQL statement
    3. Declare parameters and provide parameter values
    4. Do the work for each iteration.

提交回复
热议问题