Getting error “'encypt' is not a valid command” while trying to encrypt using Spring boot CLI

折月煮酒 提交于 2019-12-11 04:26:15

问题


I am trying to encrypt a password using Spring boot CLI (1.5.7).

./spring encrypt mysecret --key ashish

I am getting below error for this command:

'encypt' is not a valid command. See 'help'.

Please let me know how to fix this.


回答1:


Actually encrypt and decrypt comes with Spring Cloud CLI so below command will get you these commands

./spring install org.springframework.cloud:spring-cloud-cli:1.3.2.RELEASE

But now I am getting different error "Unable to initialize due to invalid secret key"

Anyone any ideas ?



来源:https://stackoverflow.com/questions/51626320/getting-error-encypt-is-not-a-valid-command-while-trying-to-encrypt-using-sp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!