Spring Cloud Config配置

- 问题1:
The encryption algorithm is not strong enough

将配置参数放到bootstrap.properties或yml文件中
encrypt.key=configkey

- 问题2:
访问 Config对称加密参数访问:/encrypt 端点需要登录?

Spring-Boot2.xx(Spring-security5.x) security.basic.enabled废弃deprecated
直接从pom文件中移除Spring Security依赖。
使用curl 或者 postman访问 /encrypt 加密  /decrypt 解密
例如:curl http://localhost:port/encrypt -d xxx
curl http://localhost:port/decrypt -d xxx
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章