Skip to content

测试类,如何指定端口,我看现在的哪个测试类,指定端口没有这块逻辑 #5

Description

@hotsmile
public static void main(String[] args) throws Exception {
    int count = 1;
    String serverHost = "127.0.0.1";
    int sleep = 1000;

    if (args != null && args.length > 0) {
        count = Integer.parseInt(args[0]);
        if (args.length > 1) {
            serverHost = args[1];
        }
        if (args.length > 2) {
            sleep = Integer.parseInt(args[1]);
        }

这块取的参数都是一个呀?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions