File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ dependencies {
1919 implementation ' org.springframework.boot:spring-boot-starter-thymeleaf'
2020 implementation ' org.springframework.boot:spring-boot-starter-validation'
2121 implementation ' org.springframework.boot:spring-boot-starter-web'
22+ implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
23+ implementation ' mysql:mysql-connector-java:8.0.32'
2224 developmentOnly ' org.springframework.boot:spring-boot-devtools'
2325 testImplementation ' org.springframework.boot:spring-boot-starter-test'
2426}
Original file line number Diff line number Diff line change 1+ # Database connection settings
2+ spring.datasource.url =jdbc:mysql://localhost:3306/coding_events
3+ spring.datasource.username =john
4+ spring.datasource.password =admin
15
6+ # Specify the DBMS
7+ spring.jpa.database = MYSQL
8+
9+ # Show or not log for each sql query
10+ spring.jpa.show-sql = false
11+
12+ # Hibernate ddl auto (create, create-drop, update)
13+ spring.jpa.hibernate.ddl-auto = update
14+
15+ # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
16+ # stripped before adding them to the entity manager)
17+ spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL8Dialect
You can’t perform that action at this time.
0 commit comments