본문 바로가기

Spring MimeMessageHelper attachment filename encoding System.setProperty("mail.mime.splitlongparameters", "false"); MimeMessage message = sender.createMimeMessage(); MimeMessageHelper helper = new MimeMessageHelper(message, true, "UTF-8"); // Your email content helper.setFrom("..."); helper.setTo("..."); helper.setSubject("..."); helper.setText("..."); helper.addAttachment( MimeUtility.encodeWord(attachmentFilename), attachmentConten 더보기
macbook pro 2016 touch bar - keycap 교체 AS 기간이 10일 정도 지나고 나서 갑자기 T&ㅅ 키가 눌러지지 않기 시작했다..ㅠㅠ 확인해보니 다행이 키캡의 다리가 구부러졌다고 해야될까 아무튼 임시로 다른 키캡을 사용해보니 정상적으로 눌러지는 것을 확인하고 알리익스프레스에서 keycap을 찾아보았다. (https://ko.aliexpress.com/item/A1707-13-A1706-2016-2017/32844840788.html?spm=a2g0s.9042311.0.0.B1tGBb) 하나씩 팔았으면 하지만 영문 자판으로 16달러에 판매를 해서 구매~! 그리고 2주 정도 뒤에 도착해서 교체를 시작하였다. 우선 가장 먼저 T 짜부터 교체 정상적으로 동작하는 것을 확인하고 하나씩 교체를 시작하였다. 교체를 하다가 사진을 찍어서..... 이렇게 배송이 온.. 더보기
How do I redirect HTTP traffic on my server to HTTPS on my load balancer? AWS 에서 Load Balancer를 이용할 때 내부에서는 80포트 이지만 Load Balancer로 433포트로만 받고 싶을 경우에사용하는 방법이다. ==IssueI am using both HTTP and HTTPS listeners on my Elastic Load Balancing (ELB) load balancer. The ELB is offloading SSL, and the backend is listening only on a single HTTP port (HTTPS to HTTP). I want all traffic coming to my web server on port 80 to be redirected to HTTPS port 443, but I don’t want to chan.. 더보기