mercyblitz / java-training-camp

Java Training Camp
Apache License 2.0
168 stars 116 forks source link

第二期 作业七:配置验证 #16

Open mercyblitz opened 1 year ago

mercyblitz commented 1 year ago

要求

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

提示

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

  2. 配置结构设计

    • 配置内容
    • 配置元信息
    • 配置内容 MD5 加密 checksum
    • 配置时间(创建、修改)
    • 配置媒体类型(JSON、XML)
  3. 客户端和服务器之间使用 REST 通讯(可使用 Spring RestTemplate)

    • (必须)配置获取
    • (可选)配置增加
    • (可选)配置删除
    • (可选)配置变更

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

Kurok1 commented 1 year ago

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

liqi19950722 commented 1 year ago

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

kevinwang0224 commented 1 year ago

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

Owenxh commented 1 year ago