I set the following line in tomcats setenv.bat:
JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=production"
When I start the server, the following error is displayed:
The command "JAVA_OPTS" is either written wrong or could not be found.
What is wrong here? How can I set java options else?
Win7, Java 7
您应该使用Windows样式
set JAVA_OPTS=%JAVA_OPTS% -Dspring.profiles.active=production
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.