When using idea to start microservices, it is generally necessary to configure a parameter to fill in the local nacos address and namespace into the Program arguments in idea. The effect is as follows:
This is also called server parameter .
I encountered a problem today. If I package the project into a war and deploy it with an external tomcat, I also need to fill in these two values. How should I fill it in?
First you need to find the catalina.bat of apache-tomcat-8.5.84\bin
Above setlocal, fill in the following value, which is equivalent to the parameter value of Program arguments.
set -DNACOS_NAMESPACE=test-xxxx-04 -DNACOS_HOST=xxx.xx.xxx.xxx:30050
The blogger’s newly launched gitee free open source project (mall + APP + applet + H5), interested friends can learn about it.
- Aliyun server discount field: click me to enter
- Tencent cloud server spike field: click me to enter
- Taobao Coupon Special Session: ====Click me to enter====