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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章