Spring Boot中使用JdbcTemplate訪問數據庫

一 數據源的配置 1 pom中引入JDBC的支持 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> 2 關於嵌入式數據庫 嵌入式數據庫通常用於開發和測試環境,不推薦用於生產環境。Spring
相關文章
相關標籤/搜索