- 问题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