Spring框架對JDBC的簡單封裝

Spring對數據庫的操作使用JdbcTemplate來封裝JDBC,結合Spring的注入特性可以很方便的實現對數據庫的訪問操作,簡化JDBC的開發 步驟:         1. 導入jar包         2. 創建JdbcTemplate對象。依賴於數據源DataSource             * JdbcTemplate template = new JdbcTemplate(ds
相關文章
相關標籤/搜索