[링크] [Git] git add 취소하기, git commit 취소하기, git push 취소하기
git reset –soft HEAD~1 https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html
git reset –soft HEAD~1 https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html
https://donggov.tistory.com/30 https://ktko.tistory.com/entry/gitignore%EB%A5%BC-%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC-%EA%B9%94%EB%81%94%ED%95%98%EA%B2%8C-git-Commit-%ED%95%B4%EB%B3%B4%EA%B8%B0 https://www.atlassian.com/git/tutorials/saving-changes/gitignore
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 »
포인트 웹 자원을 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 쿼리를 밀고 다시 짰더니 됐다. -_-… 뭐지..뭐였지…
Chrome – HSTS 삭제하는 방법 chrome://net-internals/#hsts
https://shxrecord.tistory.com/196
mvn dependency:tree
https://lng1982.tistory.com/309
https://velog.io/@livenow/SpringBoot-Swagger%EB%A5%BC-%ED%86%B5%ED%95%9C-REST-%EC%9A%94%EC%B2%AD%EC%97%90-%EC%A0%84%EC%97%AD-jwt-%EC%9D%B8%EC%A6%9D-%EC%84%A4%EC%A0%95-%ED%95%98%EA%B8%B0
pom.xml <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>4.3.16</version> </dependency> TestJUnit.java package twopro; // 테스트코드에서도 log4j를 사용하고 싶다면 패키지는 꼭 필요한 듯. import cmm.jwt.TokenProvider; import lombok.extern.slf4j.Slf4j; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; /** * JUnit 테스트 * * @author 이프로 * @version 2021.06… Read More »
https://lionhead93.github.io/spring/DI-lombok/
잘 쓰던 우리 크롬이 어느 날.. 쿠팡 상품상세 페이지 로딩도 실패하고, 네이버 블로그 이미지도 안보이고, 네이버 로그인 하니 계속 영수증 내용 입력하라고 나오고… 알 수 없는 행동들을 했다. 웨일이나 오페라 같은 것들은 다 정상적으로 보이는데 유독 크롬만! 한참을 이유를 알 수 없어 헤메다가, 일부 정적 자원들에 대한 요청이 http 403으로 실패하는 것을 발견했고, fiddler로 request… Read More »
SSL certificate problem: self signed certificate 에러 https://www.lesstif.com/gitbook/git-https-repository-ssl-14090808.html
https://kakaocommerce.tistory.com/45?category=368198
하려고 하는 작업 특정 문자열에서 메타문자 {WRAP}{/WRAP}로 감싸진 숫자를 찾아서 마스킹 처리를 하고 {WRAP}{/WRAP} 메타문자는 삭제하고 싶다. String dtl = "블라블라 {WRAP}123456{/WRAP} 어쩌구 저쩌구 {WRAP}987654{/WRAP} 마무으리 등등등…"; Matcher matcher = Pattern.compile("\\{WRAP\\}(\\d*)\\{/WRAP\\}"); // grouping을 하나 한 것에 주목 StringBuffer sb = new StringBuffer(); while(matcher.find()){ // 계속해서 결과를 찾아간다. //문자열 맨 앞에서부터 sb에 붙여나가면서 치환 처리까지 수행한다.… Read More »
https://eselltree.tistory.com/43
메인 페이지의 js /** * Web Worker 인스턴스 생성 및 호출 */ if (!! window.Worker) { var worker = new Worker('../resources/js/workerSample.js'); // 현재 페이지의 브라우저 URL에 대한 '상대경로'로 작성해야만 한다. // console.log('## worker:['+ JSON.stringify(worker) +']'); // worker가 준 메시지에 대한 이벤트 핸들러 worker.onmessage = function(e) { onWorkerResponse(e.data); worker.terminate(); // 최초 1회만 실행 후 제거 }… Read More »