java-training-camp icon indicating copy to clipboard operation
java-training-camp copied to clipboard

第二期 作业七:配置验证

Open mercyblitz opened this issue 2 years ago • 4 comments

要求

实现客户端与服务端的配置版本控制,提供合法性校验等手段,确保客户端配置是合法有效的

提示

  1. 配置服务器:简单的 REST 内存型数据(推荐使用 Spring Boot Web)

  2. 配置结构设计

  • 配置内容
  • 配置元信息
    • 配置内容 MD5 加密 checksum
    • 配置时间(创建、修改)
    • 配置媒体类型(JSON、XML)
  1. 客户端和服务器之间使用 REST 通讯(可使用 Spring RestTemplate)
  • (必须)配置获取
  • (可选)配置增加
  • (可选)配置删除
  • (可选)配置变更

参考嵌入式 Web 服务器: https://github.com/nacos-group/nacos-spring-project/blob/develop/nacos-spring-samples/nacos-embedded-webserver

mercyblitz avatar May 14 '23 15:05 mercyblitz

https://github.com/Kurok1/java-training-camp/commit/47366911b27004e3d00516ca10241a63a2973f26 公共模块 https://github.com/Kurok1/java-training-camp/commit/96af8e0047db2deb44af578ddb0c66be4eb7d0b6 服务端 https://github.com/Kurok1/java-training-camp/commit/733cce933bb845d8fe41b19c0761e6a4143d9114 客户端 https://github.com/Kurok1/java-training-camp/commit/61b3e182f5b84129d7bef8b604ddafd24f0a3ae3 demo

Kurok1 avatar May 17 '23 03:05 Kurok1

https://github.com/liqi19950722/Work/commit/0ef51945779e453e96643f176433f7a1e6c7c544 https://github.com/liqi19950722/Work/tree/master/work-2-07 TDD方式实现

liqi19950722 avatar May 18 '23 04:05 liqi19950722

https://github.com/kevinwang0224/distributed-config

kevinwang0224 avatar May 18 '23 07:05 kevinwang0224

  • All codes https://github.com/Owenxh/java-training-camp/commit/6e61c05ecb09018126e4b86fe38840f50dcca4a2

  • Server 启动入口 https://github.com/Owenxh/java-training-camp/blob/main/stage-2/src/middleware-projects/irina/src/main/java/io/github/owenxh/irina/server/IrinaServer.java

  • Client 演示代码 https://github.com/Owenxh/java-training-camp/blob/main/stage-2/src/middleware-projects/irina/src/main/java/io/github/owenxh/irina/client/example/ClientDemo.java

  • 配置管理文档 https://github.com/Owenxh/java-training-camp/blob/main/stage-2/src/middleware-projects/irina/README.md

Owenxh avatar May 18 '23 14:05 Owenxh