使用Spring Boot 的話,要使用Spring Data JDBC 是很簡單的,只要加入data-jdbc 的starter 就好了,在這邊使用H2 資料庫做示範,就一併加入好了:
確定! 回上一頁