Spring boot 如何在Spring boot的application.yml文件中设置IBM DB2当前模式?

Spring boot 如何在Spring boot的application.yml文件中设置IBM DB2当前模式?,spring-boot,spring-data-jpa,Spring Boot,Spring Data Jpa,我需要连接到具有多个模式的IBMDB2数据库。我想在application.yml文件中提供当前模式值 我尝试了下面的URL字符串,但没有任何效果 spring.datasource.url=jdbc:db2://localhost:5054/AB01?currentSchema=schema spring.datasource.url=jdbc:db2://localhost:5054/AB01:currentSchema=schema 其中Databasename=AB01“但没有任何效果

我需要连接到具有多个模式的IBMDB2数据库。我想在application.yml文件中提供当前模式值

我尝试了下面的URL字符串,但没有任何效果

spring.datasource.url=jdbc:db2://localhost:5054/AB01?currentSchema=schema
spring.datasource.url=jdbc:db2://localhost:5054/AB01:currentSchema=schema
其中Databasename=AB01

“但没有任何效果”-这到底是什么意思?例外?它已连接但未过滤到单个架构?你的电脑治好了癌症?等