Skip to content

Commit b9062ad

Browse files
committed
测试
1 parent b79643b commit b9062ad

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

transaction-dubbo/src/main/java/com/codingapi/tx/dubbo/service/impl/ModelNameServiceImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class ModelNameServiceImpl implements ModelNameService {
1818

1919

2020
@Autowired
21-
private ApplicationConfig applicationConfig;
21+
private ApplicationConfig applicationConfig;
2222

2323
@Autowired
2424
private ProviderConfig providerConfig;
@@ -28,11 +28,11 @@ public class ModelNameServiceImpl implements ModelNameService {
2828

2929
@Override
3030
public String getModelName() {
31-
return applicationConfig.getName();
31+
return applicationConfig.getName();
3232
}
3333

3434

35-
private String getIp(){
35+
private String getIp() {
3636
if (host == null) {
3737
try {
3838
host = InetAddress.getLocalHost().getHostAddress();
@@ -45,8 +45,8 @@ private String getIp(){
4545

4646
@Override
4747
public String getUniqueKey() {
48-
String address = getIp()+providerConfig.getPort();
49-
return MD5Util.md5(address.getBytes());
48+
String address = getIp() + providerConfig.getPort();
49+
return MD5Util.md5(address.getBytes());
5050
}
5151

5252

0 commit comments

Comments
 (0)