본문 바로가기

분류 전체보기300

Reuters 환율 처리 작업 전 확인 * 로이터 환율은 유료입니다. // https://mvnrepository.com/artifact/com.refinitiv.ema/ema implementation group: 'com.refinitiv.ema', name: 'ema', version: '3.6.7.1' ReutersApplication public class ReutersApplication { private static ConfigurableApplicationContext context; public static void main(String[] args) { context = SpringApplication.run(ReutersApplication.class, args); log.info("시스템 시작."); } p.. 2022. 11. 18.
중계 서버 시스템 분산 목적으로 중계 서버를 구현하기로 했음. @RequestMapping(value = "/bank/info", method = RequestMethod.POST) public CrsResult bankInfo(HttpServletRequest request, @RequestHeader Map headers, @RequestBody(required = false) Map params, HttpServletResponse response) throws Exception { return httpRequest.request(request, response, headers, params); } IHttpRequest public interface IHttpRequest { CrsResult request.. 2022. 11. 18.
09. Flutter showDialog 결과값 다음과 같은 dialog에서 정보를 가져오려고 찾아봤다. 일반 액티비티처럼 가져오는 내용은 아닌듯. 부모 showDialog(context: context, builder: (BuildContext context) { return Theme(data: DefaultColorScheme.defaultThemeData() , child: const CustomerSub() ); }).then((value) => print(value) ); 자식 Navigator.pop(context, 'data'); 2022. 9. 27.
자바 열거형 Find Value 예전 코드와 데이터베이스에서 레거시 발견. 아무런 부가설명없이 1,2로 나눠져 있어서 유지보수에 어려움이 생길거라 생각. public enum PartnerInquiryTypes { Account(1), Name(2); private int value; PartnerInquiryTypes(int value) { this.value = value; } public static PartnerInquiryTypes findByValue(final int findValue){ return Arrays.stream(values()).filter(value -> value.value == findValue).findFirst().orElse(null); } public int getValue() { return v.. 2022. 9. 23.