Hades
4 years ago
commit
01f4e86bc4
1 changed files with 24 additions and 0 deletions
@ -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…
Reference in new issue