diff --git a/.gitignore b/.gitignore index 969cfc7..b9039eb 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ HELP.md ### VS Code ### .vscode/ +src/main/resources/application.properties \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index de78f2a..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -1,8 +0,0 @@ -server.port=8080 -spring.datasource.url=jdbc:mysql://localhost:3306/projectionapi?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC -spring.datasource.username=root -spring.datasource.password=root -spring.jpa.hibernate.ddl-auto=update -spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect - diff --git a/src/main/resources/application.properties.md b/src/main/resources/application.properties.md new file mode 100644 index 0000000..cc1a20c --- /dev/null +++ b/src/main/resources/application.properties.md @@ -0,0 +1,14 @@ +# Application properties + +Create the Schema in MySQL Workbench named `projectionapi`. +Then create the `application.properties` inside `src/main/resources` file with this lines: + + +`server.port=8080` +`spring.datasource.url=jdbc:mysql://localhost:3306/projectionapi?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC` +`spring.datasource.username=YOUR_DB_USERNAME` +`spring.datasource.password=YOUR_DB_PASSWORD` +`spring.jpa.hibernate.ddl-auto=update` +`spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver` +`spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect` + \ No newline at end of file