From 365d1890b64b607ba9c9de059e421ee5522e5e85 Mon Sep 17 00:00:00 2001 From: Juanjo Date: Fri, 27 Jan 2023 13:55:58 +0100 Subject: [PATCH] cadena conexion --- src/main/resources/application.properties | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8b13789..49cf801 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1,23 @@ +server.port=9000 +spring.thymeleaf.cache=false +#BOLSA +bolsa.datasource.url=jdbc:mariadb://localhost:3306/bolsa +bolsa.datasource.username=bolsa +bolsa.datasource.password=1234 +bolsa.datasource.driver-class-name=org.mariadb.jdbc.Driver +bolsa.datasource.testWhileIdle=true +bolsa.datasource.validationQuery=SELECT 1 + +#JPA +# none, validate, update, create-drop +bolsa.jpa.hibernate.ddl-auto=validate +bolsa.jpa.show-sql=true +bolsa.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDB103Dialect +bolsa.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl +bolsa.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy + +bbddh2.datasource.url=jdbc:h2:file:/home/public/h2 +bbddh2.datasource.username=sa +bbddh2.datasource.password= +bbddh2.datasource.driver-class-name=org.h2.Driver \ No newline at end of file