From f3ded93fec8663d813138e4fd698a9ae2b744a0c Mon Sep 17 00:00:00 2001 From: liuzh Date: Wed, 1 Apr 2026 20:31:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0PowerShell=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E8=84=9A=E6=9C=ACrun.ps1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- run.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 run.ps1 diff --git a/run.ps1 b/run.ps1 new file mode 100644 index 0000000..e44947d --- /dev/null +++ b/run.ps1 @@ -0,0 +1,16 @@ +# ============================================ +# Claude Code (Java) 启动脚本 - PowerShell 版 +# 请在 Windows Terminal / PowerShell 中运行 +# ============================================ + +# === JDK 25 配置 === +$env:JAVA_HOME = "D:\Dev\jdk-25" +$env:Path = "D:\Dev\jdk-25\bin;$env:Path" + +# === AI API 配置(按需修改) === +# $env:ANTHROPIC_API_KEY = "your-api-key-here" +# $env:AI_MODEL = "claude-sonnet-4-20250514" + +# === 启动应用 === +Set-Location $PSScriptRoot +mvn spring-boot:run -q