diff --git a/pom.xml b/pom.xml index 88fb3a4..be21320 100644 --- a/pom.xml +++ b/pom.xml @@ -104,12 +104,8 @@ - - profiles/${build.profile.id}/configuracion.properties - - true src/main/resources @@ -141,29 +137,4 @@ - - - - dev - - true - - - dev - - - - prod - - prod - - - - test - - test - - - - diff --git a/profiles/dev/configuracion.properties b/profiles/dev/configuracion.properties deleted file mode 100644 index b64e1d6..0000000 --- a/profiles/dev/configuracion.properties +++ /dev/null @@ -1,5 +0,0 @@ -bd.usuario=projectionuser -bd.clave=projectionpass -bd.ip=localhost -bd.puerto=3306 -bd.basedatos=projection \ No newline at end of file diff --git a/profiles/prod/configuracion.properties b/profiles/prod/configuracion.properties deleted file mode 100644 index b64e1d6..0000000 --- a/profiles/prod/configuracion.properties +++ /dev/null @@ -1,5 +0,0 @@ -bd.usuario=projectionuser -bd.clave=projectionpass -bd.ip=localhost -bd.puerto=3306 -bd.basedatos=projection \ No newline at end of file diff --git a/profiles/test/configuracion.properties b/profiles/test/configuracion.properties deleted file mode 100644 index 76a9066..0000000 --- a/profiles/test/configuracion.properties +++ /dev/null @@ -1,5 +0,0 @@ -bd.usuario=projectionuser -bd.clave=nopass -bd.ip=localhost -bd.puerto=3306 -bd.basedatos=projection \ No newline at end of file diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties new file mode 100644 index 0000000..22121dd --- /dev/null +++ b/src/test/resources/application.properties @@ -0,0 +1,8 @@ +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=Rodrigo1807 +spring.jpa.hibernate.ddl-auto=update +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect + diff --git a/src/test/resources/application.properties.md b/src/test/resources/application.properties.md new file mode 100644 index 0000000..60b4186 --- /dev/null +++ b/src/test/resources/application.properties.md @@ -0,0 +1,15 @@ +# 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.MySQL5InnoDBDialect` + + diff --git a/src/test/resources/configuracion.properties b/src/test/resources/configuracion.properties deleted file mode 100644 index 8316ecb..0000000 --- a/src/test/resources/configuracion.properties +++ /dev/null @@ -1,5 +0,0 @@ -bd.usuario=visoruser -bd.clave=visorpass -bd.ip=localhost -bd.puerto=3306 -bd.basedatos=visorbd \ No newline at end of file