Browse Source

init

master
Hades 4 years ago
commit
01f4e86bc4
  1. 24
      src/com/fr/design/port/DefaultDesignerPortProvider.java

24
src/com/fr/design/port/DefaultDesignerPortProvider.java

@ -0,0 +1,24 @@
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);
}
}
Loading…
Cancel
Save