externalized datasource configurations

This commit is contained in:
Gaetano Savo 2025-09-03 17:34:14 +02:00
parent 0c2064c6ab
commit 17f128deea
2 changed files with 23 additions and 36 deletions

4
.gitignore vendored
View File

@ -1,3 +1,7 @@
.vscode/
target/
.settings/
# External configuration files
config/
*.log

View File

@ -12,43 +12,26 @@ spring.main.allow-bean-definition-overriding=true
# Configurazione specifica per SQL Server
spring.batch.jdbc.table-prefix=BATCH_
# Collaudo
# Configurazione Database SQL Server - C6StampeCentralizzate
# spring.datasource.trimestrale.url=jdbc:sqlserver://bfdskrepsei01c.sysfideuram.sysbancafideuram.it;databaseName=C6StampeCentralizzate;encrypt=false
# spring.datasource.trimestrale.username=F701264
# spring.datasource.trimestrale.password=contrsei
# Configurazione Database SQL Server - SEIReport
# spring.datasource.benvenuto.url=jdbc:sqlserver://bfdskrepsei02c.sysfideuram.sysbancafideuram.it;databaseName=SEIReport;encrypt=false
# spring.datasource.benvenuto.username=seireport
# spring.datasource.benvenuto.password=seireport
# Produzione
# Configurazione Database SQL Server - C6StampeCentralizzate
# spring.datasource.trimestrale.url=jdbc:sqlserver://bfdskreport01p.fideuram.bancafideuram.it;databaseName=C6StampeCentralizzate;encrypt=false
# spring.datasource.trimestrale.username=F701264
# spring.datasource.trimestrale.password=contrsei
# Configurazione Database SQL Server - SEIReport
# spring.datasource.benvenuto.url=jdbc:sqlserver://bfdskreport02p.fideuram.bancafideuram.it;databaseName=SEIReport;encrypt=false
# spring.datasource.benvenuto.username=seireport
# spring.datasource.benvenuto.password=seireport
# Localhost
# Configurazione Database SQL Server - C6StampeCentralizzate
spring.datasource.trimestrale.url=jdbc:sqlserver://localhost;databaseName=C6StampeCentralizzate;encrypt=false
spring.datasource.trimestrale.username=F701264
spring.datasource.trimestrale.password=contrsei
# Configurazione Database SQL Server - SEIReport
spring.datasource.benvenuto.url=jdbc:sqlserver://localhost;databaseName=SEIReport;encrypt=false
spring.datasource.benvenuto.username=F701264
spring.datasource.benvenuto.password=contrsei
# Importa la configurazione dei datasource da un file esterno
# Questo file non deve essere committato nel repository
spring.config.import=optional:file:./config/datasources.properties
# ------------------------------------------------------
# localhost (Esempio di file, copiare, decommentare e configurare)
# ------------------------------------------------------
# Configurazione Database SQL Server - Spring Batch
spring.datasource.batch.url=jdbc:sqlserver://localhost;databaseName=C6StampeCentralizzate;encrypt=false
spring.datasource.batch.username=F701264
spring.datasource.batch.password=contrsei
# spring.datasource.batch.url=jdbc:sqlserver://localhost;databaseName=bulk;encrypt=false
# spring.datasource.batch.username=F701264
# spring.datasource.batch.password=contrsei
# Configurazione Database SQL Server - C6StampeCentralizzate
# spring.datasource.trimestrale.url=jdbc:sqlserver://localhost;databaseName=C6StampeCentralizzate;encrypt=false
# spring.datasource.trimestrale.username=F701264
# spring.datasource.trimestrale.password=contrsei
# Configurazione Database SQL Server - SEIReport
# spring.datasource.benvenuto.url=jdbc:sqlserver://localhost;databaseName=SEIReport;encrypt=false
# spring.datasource.benvenuto.username=F701264
# spring.datasource.benvenuto.password=contrsei
# Debug e logging
logging.level.root=INFO