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