You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
455 B
24 lines
455 B
package com.fr.design.port; |
|
|
|
import com.fr.design.fun.DesignerPortProvider; |
|
|
|
import java.util.Random; |
|
|
|
/** |
|
* @author hades |
|
* @version 10.0 |
|
* Created by hades on 2021/1/26 |
|
*/ |
|
public class DefaultDesignerPortProvider implements DesignerPortProvider { |
|
|
|
@Override |
|
public int messagePort() { |
|
return new Random().nextInt(60000); |
|
} |
|
|
|
@Override |
|
public int embeddedServerPort() { |
|
return new Random().nextInt(60000); |
|
} |
|
|
|
}
|
|
|