由于新增的erp数据库密码包含特殊字符,无法识别,只需要添加单引号即可解决,密码为!-uPtbn1588opop=!,加了单引号ok
spring:
datasource:
dynamic:
primary: ds1 #设置默认的数据源或者数据源组,默认值即为master
strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
datasource:
ds1:
url: jdbc:sap://192.168.0.220:30015
username: system1024
password: 10lktyasaQQ
driver-class-name: com.sap.db.jdbc.Driver
ds2:
url: jdbc:mysql://192.168.0.227:3306
username: root
password: '!-uPtbn1588opop=!'
driver-class-name: com.mysql.cj.jdbc.Driver