feat(sae): add Java MVP backend and Taobao connectivity page

Spring Boot 3.5.6 / Java 17 JAR with cloud gateway envelope and ping/whoami/echo; Taobao gateway signature verification matching the Node implementation; /pages/mvp page, splash dev entry and local transport contract test; SAE + 聚石塔 runbook and portable JDK/Maven setup; Windows 11 wmic shim for Taobao DevTools.
This commit is contained in:
xsl
2026-10-31 18:35:04 +08:00
parent 459e21dad4
commit ac0b7ca42b
25 changed files with 1334 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
# 在当前 PowerShell 会话中加载 JDK 17 + Maven 3.9.9
# 用法:. D:\juzi\tools\env-java.ps1
$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path -Parent $PSScriptRoot
$jdkRoot = Join-Path $projectRoot 'tools\jdk17'
$jdkCandidates = @($jdkRoot)
if (Test-Path $jdkRoot) {
$jdkCandidates += Get-ChildItem $jdkRoot -Directory -ErrorAction SilentlyContinue |
ForEach-Object { $_.FullName }
}
$jdkHome = $jdkCandidates |
Where-Object { Test-Path (Join-Path $_ 'bin\java.exe') } |
Select-Object -First 1
if (-not $jdkHome) {
throw "JDK 17 not found under $jdkRoot. Run the portable JDK setup first."
}
$mavenHome = Join-Path $projectRoot 'tools\maven\apache-maven-3.9.9'
if (-not (Test-Path (Join-Path $mavenHome 'bin\mvn.cmd'))) {
throw "Maven not found at $mavenHome. Run the portable Maven setup first."
}
$env:JAVA_HOME = $jdkHome
$env:MAVEN_HOME = $mavenHome
$env:PATH = "$jdkHome\bin;$mavenHome\bin;$env:PATH"
Write-Host "JAVA_HOME=$env:JAVA_HOME"
Write-Host "MAVEN_HOME=$env:MAVEN_HOME"
java -version
mvn -version
+44
View File
@@ -0,0 +1,44 @@
# Fix Taobao DevTools on Windows 11 24H2+:
# install miniapp extension fail: Error: Command failed: wmic path win32_VideoController get caption
#
# Windows 11 24H2 removed wmic.exe. Taobao DevTools still calls it during
# extension installation. This creates a small user-level wmic.cmd shim in a
# directory that is already on the user PATH (%USERPROFILE%\.local\bin).
# No administrator rights are required.
#
# Run:
# powershell -ExecutionPolicy Bypass -File D:\juzi\tools\fix-taobao-ide-wmic.ps1
# Then fully quit and reopen Taobao DevTools.
$ErrorActionPreference = 'Stop'
$bin = Join-Path $env:USERPROFILE '.local\bin'
New-Item -ItemType Directory -Force $bin | Out-Null
$shim = Join-Path $bin 'wmic.cmd'
$content = @'
@echo off
setlocal
if /i "%~1"=="path" if /i "%~2"=="win32_VideoController" if /i "%~3"=="get" if /i "%~4"=="caption" (
powershell.exe -NoProfile -NonInteractive -Command "Get-CimInstance Win32_VideoController | Select-Object -ExpandProperty Caption"
exit /b 0
)
if /i "%~1"=="os" if /i "%~2"=="get" if /i "%~3"=="locale" (
powershell.exe -NoProfile -NonInteractive -Command "[System.Globalization.CultureInfo]::CurrentCulture.LCID.ToString('X4')"
exit /b 0
)
exit /b 0
'@
Set-Content -Path $shim -Value $content -Encoding ASCII
Write-Host "Created: $shim"
$video = & $shim path win32_VideoController get caption
Write-Host ("GPU: " + ($video -join ', '))
$locale = & $shim os get locale
Write-Host "Locale: $locale"
Write-Host ''
Write-Host 'Done. Fully quit Taobao DevTools (no Taobao DevTools process left in Task Manager), then reopen it.'
Write-Host 'Permanent alternative (elevated PowerShell): DISM /Online /Add-Capability /CapabilityName:WMIC~~~~'