|
|
1
2
正如我提到的,使用spring profile很好。定义2个带注释的数据源
看见 the example the example 获取更多信息 |
|
2
1
如果您想将嵌入式H2用于其他所有功能,可以省略配置,因为当H2位于类路径上时,Spring Boot将为您自动配置内存中的H2。
你不需要多个
|