# 数独计算 **Repository Path**: zilingyu/shudu ## Basic Information - **Project Name**: 数独计算 - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: develop - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-04 - **Last Updated**: 2026-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 数独求解程序(Java8 + Spring Boot) ## 1. 项目说明 这是一个基于 **Java 8 + Spring Boot** 的数独求解程序,包含: - 后端求解接口:接收 9x9 初始盘面,计算并返回所有可能解 - 前端页面:可在九宫格中录入已知数字并显示求解结果 ## 2. 运行环境 - JDK 1.8+ - Maven 3.6+ ## 3. 启动方式 在项目根目录执行: ```bash mvn spring-boot:run ``` 启动成功后访问: - 页面地址:`http://localhost:8080/` - 接口地址:`POST http://localhost:8080/api/sudoku/solve` ## 4. 接口示例 请求体: ```json { "grid": [ [5,3,0,0,7,0,0,0,0], [6,0,0,1,9,5,0,0,0], [0,9,8,0,0,0,0,6,0], [8,0,0,0,6,0,0,0,3], [4,0,0,8,0,3,0,0,1], [7,0,0,0,2,0,0,0,6], [0,6,0,0,0,0,2,8,0], [0,0,0,4,1,9,0,0,5], [0,0,0,0,8,0,0,7,9] ] } ``` 响应体: ```json { "solutionCount": 1, "solutions": [ [[5,3,4,6,7,8,9,1,2], ...] ] } ``` > `0` 表示空格。