본문 바로가기

포트폴리오17

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.
rest api filter에서 header, body 변경 하고 싶은 것 : 1차 필터 완료 후 2차 필터에서 클라이언트에서 제공받은 토큰으로 redis 형식의 데이터를 controller로 던지고 싶음. 매번 controller나 service에서 정보를 체크하기엔 코드량이 늘어남. package com.program.application.controller; import com.program.application.entity.main.CustomerEntity; import com.program.application.model.redis.RedisUserInformation; import com.program.application.service.main.ICustomerService; import com.program.commons.response.Respo.. 2022. 9. 7.
rest api + jpa(jpql) + replica set 지인의 요청으로 간단한 서버 구현. * 보안 및 민감한 부분은 코드가 없을 수 있습니다. 이 포스팅은 누군가에게 프로그램 구현을 위한 공유가 아닙니다. * 220811 멀티프로젝트 배포 시 설정을 각 모듈로 나눠진 내용을 최상단으로 변경 환경 : 오라클 클라우드 free... ram 1gb, vcpu2 OS : Linux centos7 DB : mariadb 10.5.8 Tool : intellij, Java 1.8 Spring boot 2.7.1 Gradle 프로젝트 구조 멀트 프로젝트 Gradle 설정 buildscript { ext { springBootVersion = '2.7.1' } repositories { mavenCentral() } dependencies { classpath("org... 2022. 8. 2.