From 9ecd7ebf7eeb7842764f6852142225127f1b8e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Eduardo=20Simon?= <55896446+luissimon96@users.noreply.github.com> Date: Tue, 5 Jul 2022 00:19:08 -0300 Subject: [PATCH 1/9] Update Readme.md --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index dd07c08..ef5c87e 100644 --- a/Readme.md +++ b/Readme.md @@ -15,7 +15,7 @@ Build Restful CRUD API for a simple Note-Taking application using Spring Boot, M **1. Clone the application** ```bash -git clone https://github.com/callicoder/spring-boot-mysql-rest-api-tutorial.git +git clone https://github.com/luissimon96/spring-boot-mysql-rest-api-tutorial.git ``` **2. Create Mysql database** From 05772b1df5f41538bc755a9b1078e403440ae648 Mon Sep 17 00:00:00 2001 From: SimonUlbra Date: Mon, 18 Jul 2022 00:22:13 -0300 Subject: [PATCH 2/9] Ajuste de artifactId --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index baec0d9..c853439 100644 --- a/pom.xml +++ b/pom.xml @@ -4,11 +4,11 @@ 4.0.0 com.example - easy-notes + easynotes 1.0.0 jar - easy-notes + easynotes Rest API for a Simple Note Taking Application From 0a4b7177b0dc325ff18b8988e73e19a6b657bc62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Eduardo=20Simon?= <55896446+luissimon96@users.noreply.github.com> Date: Mon, 18 Jul 2022 21:43:01 -0300 Subject: [PATCH 3/9] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c853439..baec0d9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,11 +4,11 @@ 4.0.0 com.example - easynotes + easy-notes 1.0.0 jar - easynotes + easy-notes Rest API for a Simple Note Taking Application From 6e9bc6e55c0171a57f675bf3b7e6b724d26835bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Eduardo=20Simon?= <55896446+luissimon96@users.noreply.github.com> Date: Tue, 19 Jul 2022 13:50:53 -0300 Subject: [PATCH 4/9] =?UTF-8?q?ajustando=20a=20vers=C3=A3o=20de=20compila?= =?UTF-8?q?=C3=A7=C3=A3o=20do=20pom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index baec0d9..471a0c3 100644 --- a/pom.xml +++ b/pom.xml @@ -2,28 +2,23 @@ 4.0.0 - com.example easy-notes 1.0.0 jar - easy-notes Rest API for a Simple Note Taking Application - org.springframework.boot spring-boot-starter-parent 2.5.5 - UTF-8 UTF-8 - 11 + 8 - org.springframework.boot @@ -53,7 +48,6 @@ test - @@ -62,6 +56,30 @@ - - + + + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + + never + + + + + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + + From 3893aea1c7d62fbcffe949b8d88d45276cd74fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Eduardo=20Simon?= <55896446+luissimon96@users.noreply.github.com> Date: Tue, 19 Jul 2022 13:52:06 -0300 Subject: [PATCH 5/9] Update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ff29930..cab22b6 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ dist/ nbdist/ .nb-gradle/ .elasticbeanstalk +.vagrant From e01a5c5bb14dc56a6c8aea716fcee82345f128c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Eduardo=20Simon?= <55896446+luissimon96@users.noreply.github.com> Date: Tue, 19 Jul 2022 22:15:55 -0300 Subject: [PATCH 6/9] Update application.properties --- src/main/resources/application.properties | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index d357d46..436ddfe 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,7 +1,7 @@ ## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties) -spring.datasource.url = jdbc:mysql://localhost:3306/notes_app?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false -spring.datasource.username = root -spring.datasource.password = callicoder +spring.datasource.url = jdbc:mysql://{{dbhost}}:3306/{{dbname}}?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false +spring.datasource.username = {{dbusername}} +spring.datasource.password = {{dbpassword}} ## Hibernate Properties @@ -10,4 +10,4 @@ spring.datasource.password = callicoder spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect # Hibernate ddl auto (create, create-drop, validate, update) -spring.jpa.hibernate.ddl-auto = update \ No newline at end of file +spring.jpa.hibernate.ddl-auto = update From 06d962296ab21e1dc24bad226ffc3da1cf8629e4 Mon Sep 17 00:00:00 2001 From: SimonUlbra Date: Tue, 19 Jul 2022 23:08:44 -0300 Subject: [PATCH 7/9] =?UTF-8?q?Ajuste=20de=20tabula=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 471a0c3..240230f 100644 --- a/pom.xml +++ b/pom.xml @@ -2,52 +2,64 @@ 4.0.0 + com.example easy-notes 1.0.0 jar easy-notes Rest API for a Simple Note Taking Application + org.springframework.boot spring-boot-starter-parent 2.5.5 + UTF-8 UTF-8 8 + + org.springframework.boot spring-boot-starter-data-jpa + org.springframework.boot spring-boot-starter-web + org.springframework.boot spring-boot-starter-validation + org.springframework.boot spring-boot-devtools runtime + mysql mysql-connector-java runtime + org.springframework.boot spring-boot-starter-test test + + @@ -82,4 +94,4 @@ - + \ No newline at end of file From 13d653b112e120041aa3980d101b311fc565ed42 Mon Sep 17 00:00:00 2001 From: SimonUlbra Date: Wed, 20 Jul 2022 00:15:15 -0300 Subject: [PATCH 8/9] Ajustando repositorios do spring --- pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pom.xml b/pom.xml index 240230f..63c78ab 100644 --- a/pom.xml +++ b/pom.xml @@ -70,6 +70,7 @@ + central Central Repository @@ -82,6 +83,17 @@ never + + + spring-snapshots + https://repo.spring.io/snapshot + + + + spring-milestones + https://repo.spring.io/milestone + + From 04103b41784dd9b74d646dd2c3a8b647aa4d7022 Mon Sep 17 00:00:00 2001 From: SimonUlbra Date: Wed, 20 Jul 2022 23:33:10 -0300 Subject: [PATCH 9/9] Ajustando artifactID --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 63c78ab..b0fa39d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,10 +4,10 @@ 4.0.0 com.example - easy-notes + easynotes 1.0.0 jar - easy-notes + easynotes Rest API for a Simple Note Taking Application