Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
8def7ea9
Commit
8def7ea9
authored
May 08, 2020
by
zhanghouying
Browse files
运维部署,解决每次连接不同服务器都默认访问第一台服务器的问题
parent
651253f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/mnt/util/ScpClientUtil.java
View file @
8def7ea9
...
...
@@ -29,13 +29,8 @@ import java.util.logging.Logger;
*/
public
class
ScpClientUtil
{
static
private
ScpClientUtil
instance
;
static
synchronized
public
ScpClientUtil
getInstance
(
String
ip
,
int
port
,
String
username
,
String
password
)
{
if
(
instance
==
null
)
{
instance
=
new
ScpClientUtil
(
ip
,
port
,
username
,
password
);
}
return
instance
;
return
new
ScpClientUtil
(
ip
,
port
,
username
,
password
);
}
public
ScpClientUtil
(
String
ip
,
int
port
,
String
username
,
String
password
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment