zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package cn.autoform.web.client.util;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import cn.autoform.db.entity.IpAndPortEntity;
import cn.autoform.web.mapper.IpAndPort.IpAndPortMapper;
 
@Service
public class IpAndPortTool {
    
    @Autowired
    IpAndPortMapper ipAndPortMapper;
    
    //ip查询加mycat
    public IpAndPortEntity queryIpAndPortByServiceName(String serviceName) {
        return ipAndPortMapper.queryIpAndPortByServiceName(serviceName);
    }
}