[링크] IntelliJ 에서 마우스 우클릭에 해당하는 키보드 키(context menu) 가 작동하지 않을 경우 해결
https://stackoverflow.com/questions/32000669/intellij-idea-key-board-right-click-doesnt-work
https://stackoverflow.com/questions/32000669/intellij-idea-key-board-right-click-doesnt-work
좀 멍청한 짓이었는데, intellij 셋팅 후 clone 으로 프로젝트를 받아온 상태에서, 당연히 remote repository 가 clone 주소라고 생각하고 있었는데, remote branch 의 주소가 다름 아닌 local branch 의 주소였던 것이다. 그래서 push가 reject 가 된 것.. remote repository 의 주소를 원격지로 다시 설정하고 push를 하니 문제가 없었다. (-_- )..
package com.app.util; import java.util.Locale; import java.util.Properties; import javax.servlet.http.HttpServletRequest; import org.springframework.context.MessageSource; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; import org.springframework.core.io.support.PropertiesLoaderUtils; import org.springframework.web.context.request.RequestAttributes; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; import com.util.StringUtil; import lombok.extern.slf4j.Slf4j; /** * 웹 관련 유틸 클래스 * * @author STEVE */ @Slf4j public class WebUtil { /** * 현재 request url 에서 [http(s)프로토콜 부터 도메인까지]를 substring 한 문자열을… Read More »
※ 개요: Thunderbird로 gmail의 SMTP 서버를 경유하여 단체메일을 보냈더니, 수신자 100명 제한이 걸려 있어서 찾아보다가 메일건 SMTP 서버를 연결하기로 했다. 1. Mailgun SMTP credential 발급 1-1. Mailgun > Sending > Domain settings > SMTP credentials > New SMTP User 2. Thunderbird 설정 2-1. 계정설정 > 보내는 서버 (SMTP) > 추가 서버 이름: smtp.mailgun.org… Read More »
https://www.thunderbird.net/ko/
[mysql] 인덱스 정리 및 팁
https://m.blog.naver.com/PostView.nhn?blogId=ckdtjd78&logNo=220837000174&proxyReferer=https%3A%2F%2Fwww.google.com%2F
B 테이블에 A.col_a 을 참조하는 FK(B.col_b 연결)를 생성하려 한다고 했을 때, 1. 두 테이블.칼럼의 데이터유형/캐릭터셋이 동일한지 확인. 2. b.col_b 에는 존재하는데 A.col_a 에는 존재하지 않는 데이터가 있는 경우 실패.
http://www.presentation-assistant.com/ppointer/index.htm * 간단 사용법 (마우스로 그림 그리는 것에 한해) 1. Live Draw 탭 클릭 2. Activate 상태가 아니면 Activate 클릭 (아니면 기본 단축키인 Ctrl + F11 로 Activate 시켜도 됨) 3. Activate 상태에서 – Ctrl 을 누른 상태에서 마우스 이동을 하면 선이 그려짐 – 마우스클릭을 하면 안되고 Ctrl을 누른 상태에서 마우스만 이동한다.… Read More »
https://www.kisa.or.kr/uploadfile/201901/201901221636356467.pdf
10 Spring Boot security best practices
http://justshowup.co.kr/main.ink
* error_log() 라는 함수를 사용한다. e.g.) error_log(“블라블라”, 3, “/home/bruce/custom.log”); 두 번째 인수 3은 세 번째 인수의 경로에 해당하는 로그파일에 기록하겠다는 선언이다. 로그가 기록되지 않는다면 로그파일을 777 권한으로 생성해 보자.
* 개요 nginx 버전: 1.18.0 nginx – php 설정을 하는데, 기존 소스가 php 파일임에도 불구하고 html 확장자로 되어 있어서 초기 셋팅에 애를 먹었었다. location / {} 에 fast_cgi 관련 설정을 넣으니 <!DOCTYPE html> 태그가 html 파일에 선언되어 있을 때 css가 작동하지 않았고, 해당 태그를 삭제하니 css가 작동했다. 이 때 fiddler를 통해 좀 더 분석해 보니… Read More »
https://this-programmer.com/entry/JavaScript%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-%EC%88%AB%EC%9E%90%EB%A5%BC-%EB%A7%8C-%EC%96%B5-%EC%A1%B0-%EA%B2%BD-%EB%93%B1-%EB%A7%8C-%EB%8B%A8%EC%9C%84-%ED%95%9C%EA%B8%80%EB%A1%9C-%EC%B0%8D%EA%B8%B0-%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-%EC%97%B0%EC%82%B0%EC%9D%98-%ED%95%9C%EA%B3%84%EA%B0%92
https://post.naver.com/viewer/postView.nhn?volumeNo=11481510&memberNo=34114530
org.springframework.test.util.ReflectionTestUtils.setField(obj, “fieldName01”, fieldValue01);
List<String> newList = list.stream().map(StringUtil::trim).collect(Collectors.toList()); * 참고 링크 Java 스트림 Stream (1) 총정리
/* * 기본적인 루프 * – map.forEach() */ map.forEach((k, v) -> System.out.println("key: " + k + ", value: " + v)); map.forEach((k,v) -> { System.out.println("key: " + k + ", value: " + v) }); map.entrySet().forEach((e) -> System.out.println("key: " + e.getKey() + ", value: " + e.getValue())); map.keySet().forEach((k) -> System.out.println("key: " + k)); map.values().forEach((v) ->… Read More »
import java.util.List; import org.apache.ibatis.cache.CacheKey; import lombok.extern.slf4j.Slf4j; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheManager; /** * MyBatis EHCache 관련 유틸 클래스 * * – mapperId + statementId 에 대하여 exactly equals 가 아니라 contains 임에 주의 * * @author STEVE */ @Slf4j public class MyBatisCacheUtil { /** * MyBatis 쿼리 캐시 제거 * * @param mapperId (e.g. “com.example.repository.UserRepository”) *… Read More »