diff --git a/novalon-manage-web/e2e/global-setup.ts b/novalon-manage-web/e2e/global-setup.ts index 891cc65..dd7191d 100644 --- a/novalon-manage-web/e2e/global-setup.ts +++ b/novalon-manage-web/e2e/global-setup.ts @@ -101,7 +101,7 @@ async function globalSetup(config: FullConfig) { backendArgs = [ '-jar', jarFile, - '--spring.profiles.active=test', + '--spring.profiles.active=dev', '-Xms256m', '-Xmx512m' ]; @@ -109,7 +109,7 @@ async function globalSetup(config: FullConfig) { console.log('📦 使用Maven启动后端服务...'); console.log(' 提示: 运行 "mvn clean package -DskipTests" 构建JAR文件以获得更快的启动速度'); backendCommand = 'mvn'; - backendArgs = ['spring-boot:run', '-Dspring-boot.run.profiles=test']; + backendArgs = ['spring-boot:run', '-Dspring-boot.run.profiles=dev']; } console.log(` 目录: ${backendDir}`); @@ -167,7 +167,7 @@ async function globalSetup(config: FullConfig) { gatewayArgs = [ '-jar', gatewayJarFile, - '--spring.profiles.active=test', + '--spring.profiles.active=dev', '-Xms128m', '-Xmx256m' ]; @@ -175,7 +175,7 @@ async function globalSetup(config: FullConfig) { console.log('🚪 使用Maven启动网关服务...'); console.log(' 提示: 运行 "mvn clean package -DskipTests" 构建JAR文件以获得更快的启动速度'); gatewayCommand = 'mvn'; - gatewayArgs = ['spring-boot:run', '-Dspring-boot.run.profiles=test']; + gatewayArgs = ['spring-boot:run', '-Dspring-boot.run.profiles=dev']; } console.log(` 目录: ${gatewayDir}`); @@ -186,7 +186,7 @@ async function globalSetup(config: FullConfig) { stdio: 'pipe', shell: true, detached: false, - env: { ...process.env, SPRING_PROFILES_ACTIVE: 'test' } + env: { ...process.env, SPRING_PROFILES_ACTIVE: 'dev' } }); if (gatewayProcess.stdout) {