The project was originally a microservice, but now it needs to be formatted as a war and deployed to TongWeb7. According to the normal understanding, it is just a change of container, and the startup method can be copied over. However, there is a problem when starting locally. 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 .
If I package the project into a war and use the external TongWeb7 to deploy, I also need to fill in these two values, how should I fill in.
First start TongWeb7 and visit the following address:
http://localhost:9060/console/
Account default is: thanos
The default password is: thanos123.com
Click on the following menu (Start Parameter Configuration), select (Server Parameters) and click Add to add these two items.
-DNACOS_NAMESPACE=xxx-xxx-04
-DNACOS_HOST=1xx.1xx.1xx.1xx: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====