由於我是後端工程師,此次練習將專注在後端的部份
我的配置大致與影片相同
不同的地方是:Java 版本跟Spring Boot 版本
Java 版本:Amazon Corretto 11(用習慣了)
Spring boot 版本:Spring boot 2.7版(影片的版本已經選不到了)
建立 MySQL 資料庫:CREATE DATABASE employee_management_system;
打開 application.properties 添加
spring.datasource.url=jdbc:mysql://localhost:3306/employee_management_system?useSSL=false
spring.datasource.username=數據庫帳號
spring.datasource.password=數據庫密碼spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialectspring.jpa.hibernate.ddl-auto = update