spring boot1.5.8+druid.1.1.5+mybatis3.4.5,druidt配置加密解密无效
临轩 2017-12-10 06:04:29 appplication.yml配置如下:
spring:
datasource:
url: jdbc:mysql://localhost:3306/springboot?useUnicode=true&characterEncoding=utf8&useSSL=false
username: root
password: xxxxx
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
filters: config
connectionProperties: config.decrypt=true;config.decrypt.key=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKWFCFvmTcyO/Cfk0rqiEcX2XQU7bx0pG4UIzVBGcktc53Ch1yxYP8RfxDks1729wMXVdtflWMZ5H9I60XxUyv0CAwEAAQ==
useGlobalDataSourceStat: true
mybatis:
typeAliasesPackage: com.maven.hua.springboot.model
mapperLocations: classpath:mapper/*.xml
server:
context-path: /springboot
port: 8086
access-log-enabled: true
logging:
level:
org: debug
com.alibaba.druid: debug
file: log\myspringboot.log
没有解密,报密码错误,配置哪里不对吗?