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

没有解密,报密码错误,配置哪里不对吗?
...全文
225 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
临轩 2017-12-10
  • 打赏
  • 举报
回复
引用 1 楼 an_2016 的回复:
密码不是mysql的密码么
是啊,不加密可以,加密后,那个解密的配置无效,看他们都是这样的
科比请留步 2017-12-10
  • 打赏
  • 举报
回复
密码不是mysql的密码么

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧