- 問題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