Skip to content

Commit 50c2942

Browse files
committed
updated Spring Boot to use MySQL
1 parent e9f75d8 commit 50c2942

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
<groupId>com.h2database</groupId>
5858
<artifactId>h2</artifactId>
5959
</dependency>
60+
<dependency>
61+
<groupId>mysql</groupId>
62+
<artifactId>mysql-connector-java</artifactId>
63+
</dependency>
6064
<dependency>
6165
<groupId>org.springframework.boot</groupId>
6266
<artifactId>spring-boot-starter-test</artifactId>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
#logging.level.org.h2.server: DEBUG
2+
# Database
3+
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
4+
spring.datasource.url= jdbc:mysql://localhost:3306/springbootdb
5+
spring.datasource.username=root
6+
spring.datasource.password=
7+
8+
9+
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
10+
spring.jpa.hibernate.ddl-auto=create-drop

0 commit comments

Comments
 (0)