Spring云密钥库示例不起作用

时间:2017-08-03 23:02:49

标签: spring-cloud spring-cloud-config

我正在尝试让密钥库支持Spring Cloud Configuration Server的加密功能。 STS发出错误并且加密/状态继续抱怨。我的application.yml文件中出现错误

server:
    port: 8888
spring:
    cloud:
      config:
        server:
          git:
            uri: ${GIT_CONFIG_URI}
            username: ${GIT_USERNAME}
            password: ${GIT_PASSWORD}
          encrypt:
            keyStore:
              location: ${ENCRYPT_KEY_STORE_URL}
              password: ${ENCRYPT_KEY_STORE_PASSWORD}
              alias: ${ENCRYPT_KEY_STORE_ALIAS}
              secret: ${ENCRYPT_KEY_STORE_SECRET}

IN STS:未知属性'spring.cloud.config.server.encrypt.keyStore'

文档http://cloud.spring.io/spring-cloud-static/spring-cloud-config/1.3.1.RELEASE/#_security

中的逐字示例
encrypt:
  keyStore:
    location: classpath:/server.jks
    password: letmein
    alias: mytestkey
    secret: changeme

0 个答案:

没有答案