GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fmv-projects/8ivet-backend-spring

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
src/main
src/main
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

8ivet 后端

Java 21、Spring Boot 4.1.1、Maven。当前仅提供一个通过邮箱和密码认证的账号,不接入数据库,也不提供注册、找回密码或令牌接口。

启动

  1. 安装 JDK 21 和 Maven 3.6.3+。
  2. 在项目根目录的 .env 中设置 AUTH_EMAIL 和 AUTH_PASSWORD(格式见 .env.example)。两项都必填;缺失或空白时应用拒绝启动。不要提交 .env。
  3. 在项目根目录执行 mvn spring-boot:run,默认监听 http://localhost:8080。

应用显式从当前工作目录加载 .env;同名操作系统环境变量优先于 .env。密码启动时编码为 BCrypt 存于内存,修改账号信息需要重启。仅支持一个预配置账号。

Spring Boot 应用配置位于 src/main/resources/application.yml;根目录 .env 保持环境变量格式,不是 YAML 文件。

认证

所有请求都需要 HTTP Basic 身份认证,用户名为 AUTH_EMAIL,密码为 AUTH_PASSWORD。GET /api/me 在认证成功时返回 {"email":"已认证邮箱"};未提供或提供错误的凭据返回 HTTP 401。可用 curl -u "你的邮箱" http://localhost:8080/api/me 验证,curl 会提示输入密码。

HTTP Basic 每次请求都携带凭据;部署时必须通过 HTTPS 提供服务,不要在公网直接暴露明文 HTTP。当前没有数据库或多用户管理功能。

代码结构

安全配置位于 framework.security.config,认证入口位于 auth.controller,接口响应模型位于 auth.domain.response;新增类按 AGENTS.md 中的职责分包规则归属。

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.