# spring-cloud-practice **Repository Path**: wekri/spring-cloud-practice ## Basic Information - **Project Name**: spring-cloud-practice - **Description**: No description available - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-10-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # spring-cloud-practice ## cloud-chapter1-config : 配置中心demo - configuration-client : 业务实例 - configuration-service : configServer 配置加密: 1. 配置密码 ```yaml encrypt: key: wekri ``` 2. 查看配置状态 ```shell curl -X GET http://127.0.0.1:8080/encrypt/status ``` 返回 ``` {"status":"OK"} ``` 3. 生成密文 ```shell curl -X POST \ http://127.0.0.1:8080/encrypt \ -d 12 ``` 4. 测试解密 ```shell curl -X POST \ http://127.0.0.1:8080/decrypt \ -d 3d49b3df0a237018f0a36ce7040fa9b3f7caa9c2380035e4f7a7dbd194d76baa ``` 5. 放入配置文件 ```yaml pwd: '{cipher}3d49b3df0a237018f0a36ce7040fa9b3f7caa9c2380035e4f7a7dbd194d76baa' ```