➕ swagger 운영 주소 추가
This commit is contained in:
부모
906611c9b8
커밋
7a405bb969
@ -38,12 +38,15 @@ public class SwaggerConfig {
|
|||||||
new Server()
|
new Server()
|
||||||
.url("http://localhost:" + serverPort)
|
.url("http://localhost:" + serverPort)
|
||||||
.description("로컬 개발 서버"),
|
.description("로컬 개발 서버"),
|
||||||
|
new Server()
|
||||||
|
.url("http://10.26.252.39:" + serverPort)
|
||||||
|
.description("로컬 개발 서버"),
|
||||||
new Server()
|
new Server()
|
||||||
.url("http://211.208.115.83:" + serverPort)
|
.url("http://211.208.115.83:" + serverPort)
|
||||||
.description("중계 서버"),
|
.description("중계 서버"),
|
||||||
new Server()
|
new Server()
|
||||||
.url("https://api.snp-batch.com")
|
.url("http://10.187.28.28:" + serverPort)
|
||||||
.description("운영 서버 (예시)")
|
.description("운영 서버")
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -45,7 +45,7 @@ public class ShipDetailDataReader extends BaseApiReader<ShipDetailComparisonData
|
|||||||
// DB 해시값을 저장할 맵
|
// DB 해시값을 저장할 맵
|
||||||
private Map<String, String> dbMasterHashes;
|
private Map<String, String> dbMasterHashes;
|
||||||
private int currentBatchIndex = 0;
|
private int currentBatchIndex = 0;
|
||||||
private final int batchSize = 50;
|
private final int batchSize = 30;
|
||||||
|
|
||||||
public ShipDetailDataReader(WebClient webClient, JdbcTemplate jdbcTemplate, ObjectMapper objectMapper) {
|
public ShipDetailDataReader(WebClient webClient, JdbcTemplate jdbcTemplate, ObjectMapper objectMapper) {
|
||||||
super(webClient);
|
super(webClient);
|
||||||
@ -64,16 +64,11 @@ public class ShipDetailDataReader extends BaseApiReader<ShipDetailComparisonData
|
|||||||
return "/MaritimeWCF/APSShipService.svc/RESTFul/GetShipsByIHSLRorIMONumbersAll";
|
return "/MaritimeWCF/APSShipService.svc/RESTFul/GetShipsByIHSLRorIMONumbersAll";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected String getApiBaseUrl() {
|
|
||||||
return "https://shipsapi.maritime.spglobal.com";
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final String GET_ALL_IMO_QUERY =
|
private static final String GET_ALL_IMO_QUERY =
|
||||||
"select imo_number from ship_data where imo_number > (select max(imo_number) from ship_detail_hash_json) order by imo_number asc";
|
"select imo_number from snp_data.ship_data order by imo_number";
|
||||||
|
|
||||||
private static final String FETCH_ALL_HASHES_QUERY =
|
private static final String FETCH_ALL_HASHES_QUERY =
|
||||||
"SELECT imo_number, ship_detail_hash FROM ship_detail_hash_json ORDER BY imo_number";
|
"SELECT imo_number, ship_detail_hash FROM snp_data.ship_detail_hash_json ORDER BY imo_number";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 최초 1회만 실행: ship_data 테이블에서 IMO 번호 전체 조회
|
* 최초 1회만 실행: ship_data 테이블에서 IMO 번호 전체 조회
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user