The value filling method of Program arguments in Idea in TW7

        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.

Fresh food mall kxmall-small program + App + official account H5: kxmall-fresh food mall + APP + small program + H5. At the same time, it supports WeChat applets, H5, Android App, and Apple App. Supports cluster deployment and stand-alone deployment. It can be used in B2C malls, O2O takeaways, community supermarkets, and fresh food [with a matching rider-end delivery system]. kxmall uses uniapp encoding. Use Java development, SpringBoot 2.1.x framework, MyBatis-plus persistence layer framework, Redis as cache, MySql as database. The front-end vuejs is used as the development language. https://gitee.com/zhengkaixing/kxmall

Guess you like

Origin blog.csdn.net/qq_38377190/article/details/127797992