diff --git a/persistence-modules/spring-boot-mysql/.gitignore b/persistence-modules/spring-boot-mysql/.gitignore
new file mode 100644
index 0000000000..96136ab255
--- /dev/null
+++ b/persistence-modules/spring-boot-mysql/.gitignore
@@ -0,0 +1,5 @@
+/target/
+.settings/
+.classpath
+.project
+.mvn/
\ No newline at end of file
diff --git a/persistence-modules/spring-boot-mysql/pom.xml b/persistence-modules/spring-boot-mysql/pom.xml
new file mode 100644
index 0000000000..6be58332aa
--- /dev/null
+++ b/persistence-modules/spring-boot-mysql/pom.xml
@@ -0,0 +1,59 @@
+
+
+ 4.0.0
+ spring-boot-mysql
+ 0.1.0
+ spring-boot-mysql
+
+
+ parent-boot-2
+ com.baeldung
+ 0.0.1-SNAPSHOT
+ ../../parent-boot-2
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ 2.1.5.RELEASE
+
+
+ org.springframework.boot
+ spring-boot-starter-data-jpa
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+
+
+ org.springframework.boot
+ spring-boot-devtools
+ true
+
+
+ mysql
+ mysql-connector-java
+
+
+
+
+ spring-boot-mysql-timezone
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+
+ UTF-8
+ 8.0.12
+
+
+
diff --git a/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/Application.java b/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/Application.java
new file mode 100644
index 0000000000..d69f66fc7a
--- /dev/null
+++ b/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/Application.java
@@ -0,0 +1,20 @@
+package com.baeldung.boot;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+import javax.annotation.PostConstruct;
+import java.util.TimeZone;
+
+@SpringBootApplication
+public class Application {
+
+ @PostConstruct
+ void started() {
+ TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
+ }
+
+ public static void main(String[] args) {
+ SpringApplication.run(Application.class, args);
+ }
+}
diff --git a/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/Controller.java b/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/Controller.java
new file mode 100644
index 0000000000..48864269fe
--- /dev/null
+++ b/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/Controller.java
@@ -0,0 +1,27 @@
+package com.baeldung.boot;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@RestController
+public class Controller {
+
+ @Autowired
+ UserRepository userRepository;
+
+ @GetMapping
+ public User get() {
+ User user = new User();
+ userRepository.save(user);
+ return user;
+ }
+
+ @GetMapping("/find")
+ public List find() {
+ List users = userRepository.findAll();
+ return users;
+ }
+}
diff --git a/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/User.java b/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/User.java
new file mode 100644
index 0000000000..55cb97dec2
--- /dev/null
+++ b/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/User.java
@@ -0,0 +1,40 @@
+package com.baeldung.boot;
+
+
+import org.springframework.data.annotation.CreatedDate;
+
+import javax.persistence.*;
+import java.util.Date;
+
+@Entity
+public class User {
+ @Id
+ @GeneratedValue(strategy = GenerationType.AUTO)
+ private Integer id;
+
+ @Column
+ private String name;
+
+ @CreatedDate
+ private Date createdDate = new Date();
+
+ public Date getCreatedDate() {
+ return createdDate;
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
diff --git a/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/UserRepository.java b/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/UserRepository.java
new file mode 100644
index 0000000000..3c50c30cce
--- /dev/null
+++ b/persistence-modules/spring-boot-mysql/src/main/java/com/baeldung/boot/UserRepository.java
@@ -0,0 +1,10 @@
+package com.baeldung.boot;
+
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+import java.io.Serializable;
+
+@Repository
+public interface UserRepository extends JpaRepository {
+}
diff --git a/persistence-modules/spring-boot-mysql/src/main/resources/application.yml b/persistence-modules/spring-boot-mysql/src/main/resources/application.yml
new file mode 100644
index 0000000000..5404555d49
--- /dev/null
+++ b/persistence-modules/spring-boot-mysql/src/main/resources/application.yml
@@ -0,0 +1,14 @@
+spring:
+ datasource:
+ url: jdbc:mysql://localhost:3306/test?useLegacyDatetimeCode=false
+ username: root
+ password:
+
+ jpa:
+ hibernate:
+ ddl-auto: update
+ properties:
+ hibernate:
+ dialect: org.hibernate.dialect.MySQL5Dialect
+ jdbc:
+ time_zone: UTC
\ No newline at end of file