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);
|
}
|
}
|