diff --git a/.gitignore b/.gitignore index ff29930..cab22b6 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ dist/ nbdist/ .nb-gradle/ .elasticbeanstalk +.vagrant 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** diff --git a/pom.xml b/pom.xml index baec0d9..b0fa39d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,11 +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 @@ -21,37 +20,44 @@ UTF-8 UTF-8 - 11 + 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 + @@ -62,6 +68,42 @@ + + + + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + + never + + + + + spring-snapshots + https://repo.spring.io/snapshot + + + spring-milestones + https://repo.spring.io/milestone + - + + + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + + + \ No newline at end of file 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