Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhmes-agecal
Commits
0fea4b3f
Commit
0fea4b3f
authored
Nov 13, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1调整打包方式
parent
203a5ee0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
startup.bat
zhmes-agecal-admin/src/main/bin/startup.bat
+19
-3
No files found.
zhmes-agecal-admin/src/main/bin/startup.bat
View file @
0fea4b3f
...
...
@@ -7,15 +7,31 @@ setlocal
set "APP_HOME=%~dp0.."
set "APP_NAME=zhmes-agecal-3.5.0.jar"
set "JAVA_OPTS=-Xms1024m -Xmx2048m -Dfile.encoding=UTF-8"
set "
SPRING_OPTS=--spring.config.location=../conf/application.yml
"
set "
CONFIG_LOCATION=%APP_HOME%/conf/
"
echo Starting %APP_NAME% ...
echo JAVA_OPTS: %JAVA_OPTS%
echo
SPRING_OPTS: %SPRING_OPTS
%
echo
CONFIG_LOCATION: %CONFIG_LOCATION
%
cd /d "%APP_HOME%"
java %JAVA_OPTS% -jar "lib/%APP_NAME%" %SPRING_OPTS%
echo Checking configuration files...
if exist "%CONFIG_LOCATION%application.yml" (
echo Found: application.yml
) else (
echo ERROR: application.yml not found!
pause
exit /b 1
)
if exist "%CONFIG_LOCATION%application-test.yml" (
echo Found: application-test.yml
) else (
echo WARNING: application-test.yml not found
)
echo Starting application with test profile...
java %JAVA_OPTS% -jar "lib/%APP_NAME%" --spring.config.location=file:%CONFIG_LOCATION% --spring.profiles.active=test
if %ERRORLEVEL% NEQ 0 (
echo Failed to start %APP_NAME%
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment