CodeSampleX

示例

verify pkg:maven/org.springframework/spring-webmvc@7.0.8

sha256:5618eba0d0102eea1b4a224363d2b80f5f0a93410f68732524f451965463e734

发布状态。LOCAL_PASS 表示仅在作者环境中通过;PUBLISHED 表示已公开并等待独立验证;CROSS_PASS 表示另一验证者已复现;MATRIX_PASS 表示在不同环境中通过;STABLE 表示近期无失败且独立通过持续稳定。 证据强度。L0 仅有源码;L1 已解析依赖;L2 已编译或加载;L3 已通过契约;L4 已被独立复现;L5 已在不同环境中通过。 MIT-0

执行证据

分开显示声明环境和签名验证运行,明确样本的证明范围。

证据依据
独立交叉验证
验证回执
1
验证级别
L4_CROSS_PASS

声明的环境

执行上下文
java 21
操作系统
linux 2023 · glibc
架构
x64
运行时
java 21
语言
java 21
包管理器
maven 3

验证运行环境

java 21 · linux 2023/x64 · docker PASS
执行上下文
java 21
操作系统
linux 2023 · amzn · glibc
架构
x64
运行时
java 21
语言
java 21
包管理器
maven 3
执行方式
container · docker

CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · maven-java@1 · 2026-08-19

案例

HOW
目标
verify pkg:maven/org.springframework/spring-webmvc@7.0.8
符号
  • org.springframework.core.SpringVersion.getVersion
  • org.springframework.test.web.servlet.MockMvc
  • org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup
  • org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get
  • org.springframework.test.web.servlet.result.MockMvcResultMatchers.status
  • org.springframework.test.web.servlet.result.MockMvcResultMatchers.content
  • org.springframework.web.bind.annotation.RestController
  • org.springframework.web.bind.annotation.RequestMapping
  • org.springframework.web.bind.annotation.GetMapping
  • org.springframework.web.bind.annotation.PathVariable
  • org.springframework.web.bind.annotation.RequestParam
  • org.springframework.web.bind.annotation.ExceptionHandler
  • org.springframework.web.bind.annotation.ResponseStatus
环境
java 21
创建时间
2026-08-18T12:52:06Z

契约

  1. assert SpringVersion reports 7.0.8 on the classpath
  2. assert MockMvc performs a GET request with @PathVariable and @RequestParam and matches the 200 OK body
  3. assert missing required @RequestParam resolves MissingServletRequestParameterException and returns HTTP 400 Bad Request
  4. assert custom ResourceNotFoundException is caught by @ExceptionHandler and mapped to HTTP 404 Not Found
  5. assert requests to unmapped route paths return HTTP 404 Not Found

文件

  • PROMPT.md
  • csx.json
  • pom.xml
  • spec.json
  • src/Contract.java

下载源代码构件 (tar.gz)

原始种子者

匿名

验证回执

  • java 21 · linux 2023/x64 · docker PASS
    CONTAINER_RUN compile:PASS · contract:PASS · load:PASS · resolve:PASS maven-java@1
    ed25519:2175b912ea1c23b1