File tree Expand file tree Collapse file tree
transaction-dubbo/src/main/java/com/codingapi/tx/dubbo/service/impl Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments