博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Error querying database. Cause: java.lang.IllegalArgumentException:Failed to decrypt.(错误笔记)...
阅读量:4694 次
发布时间:2019-06-09

本文共 2926 字,大约阅读时间需要 9 分钟。

java.lang.IllegalArgumentException:Failed to decrypt

从错误可以看出,解密失败。

原因是你在数据库连接配置的地方,设置了加密。即:

config.decrypt=true

将其改成:

config.decrypt=false

问题就可以解决。

public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAITOx1pKAT9xh7cfoZqUw6SLjgl/Y44M2XUAw37aRndmku+FSdGp9PXGwJYoeXt/TbxR1DSdd7S2+/s1cUsvvDMCAwEAAQ==spring:  http:    encoding:      charset: UTF-8      force: true      enabled: true  datasource:    druid:      url: jdbc:mysql://localhost:3306/fairchild?useSSL=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai      #        url: jdbc:mysql://192.168.31.196:3306/fairchild?useSSL=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai      username: root      password: 123456      driver-class-name: com.mysql.cj.jdbc.Driver    #  connection-properties: config.decrypt=true;config.decrypt.key=${public-key}      initial-size: 5      min-idle: 10      max-active: 20      max-wait: 60000      time-between-eviction-runs-millis: 2000      min-evictable-idle-time-millis: 60000      max-evictable-idle-time-millis: 9000000      test-while-idle: true      test-on-borrow: false      test-on-return: false      validation-query: select 1      pool-prepared-statements: true      max-open-prepared-statements: 20      async-init: true      stat-view-servlet:        enabled: true        url-pattern: /druid/*        reset-enable: true        login-username: druid        login-password: druid      web-stat-filter:        enabled: true        url-pattern: /*        exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"        session-stat-enable: false        profile-enable: true      filter:        wall:          enabled: true          db-type: mysql        config:          enabled: true      aop-patterns: cn.com.coding4fun.*  jpa:    show-sql: true    generate-ddl: false    hibernate:      ddl-auto: none    open-in-view: true    properties:      hibernate:        format_sql: true        order_updates: true        order_inserts: true        jdbc:          batch_size: 50          fetch_size: 50        javax:          cache:            provider: org.ehcache.jsr107.EhcacheCachingProvider            uri: classpath:hibernate-ehcache.xml            missing_cache_strategy: create        enable_lazy_load_no_trans: true        cache:          use_query_cache: true          use_second_level_cache: true          region_prefix: jcache-hibernate          use_minimal_puts: false          use_reference_entries: true          use_structured_entries: false          auto_evict_collection_cache: false          hibernate.cache.default_cache_concurrency_strategy: read-only          region:            factory_class: jcache  cache:    jcache:      provider: org.ehcache.jsr107.EhcacheCachingProvider      config: classpath:ehcache.xml  messages:    basename: i18n/messages    encoding: UTF-8server:  port: 8081  tomcat:    uri-encoding: UTF-8

 

转载于:https://www.cnblogs.com/mzdljgz/p/11175123.html

你可能感兴趣的文章
《Windows核心编程系列》九谈谈同步设备IO与异步设备IO之同步设备IO
查看>>
IOS-翻转时,使用2个view的交换(需注意)
查看>>
IO模型之阻塞IO
查看>>
go语言学习笔记2----变量、常量
查看>>
在阿里云上遇见更好的Oracle(二)
查看>>
jmeter 取样器--SMTP Sampler
查看>>
你应该知道的Node.js扩展模块——Hashish
查看>>
java 关于集合详解
查看>>
Datetime 使用详解
查看>>
git: fatal: Not a git repository (or any of the parent directories): .git
查看>>
c++ <fstream> 读写文件总结
查看>>
MySQL Replication--半同步复制(Semi-Sync Replication)
查看>>
没事干写写流程审批数据库的设计
查看>>
linux操作系统中安装mysql
查看>>
有用地址
查看>>
class 方法
查看>>
《编程珠玑,字字珠玑》读书笔记完结篇——AVL树
查看>>
VBA trouble
查看>>
HUD Is It A Tree?!!!!!)
查看>>
电梯调度算法(-)
查看>>