[링크] git 사용시 “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED” 오류 메시지에 대한 해결
ssh-keygen -R [git서버주소] 출처 https://kingsong.tistory.com/127
ssh-keygen -R [git서버주소] 출처 https://kingsong.tistory.com/127
검색을 해 보니 이 문제는 오라클 드라이버의 버전이 맞지 않아서 생기는 것이라 한다. 이 경우도 마찬가지로 드라이버가 너무 최신이어서 문제가 되었던 것. 아래와 같은 과정으로 해결이 되었다. (1) 이 훌륭한 분의 블로그 에서 호환 드라이버 버전을 확인. (2) 오라클 사의 웹페이지에서 구버전 드라이버를 찾을 수가 없어서 oracle instant client를 다운로드 받았다. (오라클 웹계정 필요) 정확히… Read More »
="INSERT INTO INSERT_TABLE(COLUMN1, COLUMN2, COLUMN3) VALUES('"&A2&"','"&B2&"','"&C2&"');" 원문 https://jmseo.tistory.com/20
https://godekdls.github.io/ 각종 매뉴얼/레퍼런스를 한글로 번역하시는 훌륭하신 분…^^ (spring security 등등…)
project A, project B 가 있고, commmon module용 project C가 있다고 할 때, A에서 C를 import module 하고(as maven project) 빌드까지 성공한 후, B에서 C를 import module 하면, 아까 A에서 C가 빠져버리는 현상이 있었다. 다시 A에서 C를 import module 하면, 또 B에 잘 셋팅되어 있던 C가 빠져버리는 무한 반복에 빠지게 되었는데… 삽질하다가 시도해 본 것이,… Read More »
pom.xml 우클릭 > add as Maven Project
tracked 파일일 경우에는 .gitignore가 작동하지 않는다. 그럼 git rm –cached [filePath] 로 untracked 처리한다면? => 적용은 되겠지만, 다른 사람들에게도 untracked 처리되므로 주의해야 한다. tracked 파일을 로컬에서만 changes 에 보이지 않게 하고 싶으면 update-index를 사용하자. git update-index –assume-unchanged [filePath] git commit의 대상이 아니며, 로컬 only 작업이므로 외부 영향을 미치지 않는다. git update-index –no-assume-unchanged [filePath] 로 원복할… Read More »
/** * 매개변수로 받은 문자열 list에 중복이 존재할 경우 true, 아니면 false 리턴 * * @param list * @return */ public static boolean hasDuplicated(List<String> list) { if(list == null){ return false; } Set<String> set = new HashSet<>(list); if(set.size() < list.size()){ return true; } return false; } 참고 https://stackoverflow.com/questions/562894/java-detect-duplicates-in-arraylist
나는 그냥 order by 를 paging wrap 바깥으로 빼는 것으로 해결. https://developthreefeet.tistory.com/10
굉장히 심혈을 기울인 작업인듯 https://www.notion.so/Mybatis-Interceptor-Paging-1-35a3e8b167ad47eca25acb56f1fb9795
OFFSET은 INDEX를 타지 않으니 대용량 데이터를 조회할 땐 다음과 같이 조회를 해야 합니다.?? https://zzang9ha.tistory.com/295
git stash git stash list git stash pop https://goddaehee.tistory.com/253
<Appenders> <Console name="console" target="SYSTEM_OUT"> … <RegexFilter regex=".*==>\s*(Preparing|Parameters).*" onMatch="DENY" onMismatch="ACCEPT"/> …. </Console> </Appenders> 위 샘플은 org.apache.ibatis.plugin.Intercepts 를 사용하여 parameter bound query log 를 출력시, 기존에 출력해 주던 쿼리 로그가 필요 없어져서 (preparing statement, parameter 등) 해당 부분을 출력에서 제외하는 예제임. <RegexFilter /> 를 하나 더 선언해 봤는데, 처음에 선언한 것만 작동하는 느낌이었음.
@ApiModelProperty(notes = "책 썸네일 atchFileId", hidden = true) @JsonIgnore private String bookThumbnailFileId; swagger의 모델 정의에서 필드 숨기기 @ApiModelProperty를 아예 필드에 붙이지 않는다. 모종의 이유로 붙였을 경우에는 @ApiModelProperty(hidden = true)를 사용한다. json response 에서 필드 숨기기 @JsonIgnore 를 사용한다. @JsonIgnore는 꼭 com.fasterxml.jackson.annotation.JsonIgnore 을 사용해야 한다. (java 패키지 확인)
git reset –soft HEAD~1 https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html
mybatis query xml <insert id="insertBook" useGeneratedKeys="true" keyProperty="bookId"> INSERT /* insertBook */ INTO book ( book_title ) VALUES ( #{bookTitle} ) </insert> 쿼리 이후 result 객체가 아닌 parameter 객체에서 bookId 를 참조하면 PK 획득. 이 테이블의 PK는 book_id 이지만 auto increment 이기 때문에 쿼리에는 기재되지 않았음. 대신 keyProperty 에 프로퍼티명이 명시되어 있음 mybatis config에 mapUnderscoreToCamelCase 가… Read More »
date_format() 간소화 DROP FUNCTION IF EXISTS DF14; DELIMITER $$ CREATE FUNCTION DF14(dtm datetime) RETURNS VARCHAR(14) BEGIN return DATE_FORMAT(dtm, '%Y%m%d%H%i%s'); END $$ DELIMITER ;
spring security config 클래스 @EnableWebSecurity public class CustomSecurityConfig extends WebSecurityConfigurerAdapter { … @Override protected void configure(HttpSecurity http) throws Exception { http … .and() .authorizeRequests() .requestMatchers(CorsUtils::isPreFlightRequest).permitAll() // cors setting 1 … .and().cors(); // cors setting 2 } // cors setting 3 @Bean public CorsConfigurationSource corsConfigurationSource() { CorsConfiguration configuration = new CorsConfiguration(); // configuration.addAllowedOrigin("*"); configuration.addAllowedOrigin("http://localhost:3000"); configuration.addAllowedMethod("*"); configuration.addAllowedHeader("*");… Read More »
git clean -d -f -f https://devonaws.com/git/git-pull-%EB%AA%85%EB%A0%B9-%EC%8B%9C%EC%97%90-untracked-working-tree-files-overwritten-%EB%82%98%EC%98%AC-%EB%95%8C/
포인트 웹 자원을 include 하는 구문 (href="/xxx", src="/xxx") 의 시작을 절대경로가 아닌 상대경로로 replace 해 주어서 해결함. 수정 전 (nginx > default.conf) … location / { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-NginX-Proxy true; proxy_pass http://tomcat; proxy_connect_timeout 5; } … 수정 후 (nginx > default.conf) … location /… Read More »