[링크] 엑셀 INSERT 쿼리(query) 만들기
="INSERT INTO INSERT_TABLE(COLUMN1, COLUMN2, COLUMN3) VALUES('"&A2&"','"&B2&"','"&C2&"');" 원문 https://jmseo.tistory.com/20
="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
(1) .gitignore가 추가되기 전에 존재하던 파일이라면 작동하지 않는다. git rm –cached -r [디렉토리] https://stackoverflow.com/questions/32384473/gitignore-not-ignoring-idea-path
/** * 매개변수로 받은 문자열 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 »
https://ialy1595.github.io/post/nginx-publish-in-same-domain/
이 오류의 해결을 위해서 한참을 헤멨는데, mybatis mapper config 의 jdbcTypeForNull 을 NULL로 해 주라느니 등등 이것저것 해 봤지만 아무리 해도 듣지 않았다. 변수 바인딩 표현식 #{}도 오타/누락 등의 문제 없었고, 파라미터 갯수도 문제 없고. 그러다가 그냥 기존 xml 쿼리를 밀고 다시 짰더니 됐다. -_-… 뭐지..뭐였지…