본문 바로가기

분류 전체보기

[SpringSecurity] Invalid CSRF token found for http://localhost:8080/jedu/user/register.do 회원가입을 진행하던 중 HTTP 403 에러가 발생하였다. Spring Security 3.2 이후 버전에서는 적절한 CSRF 토큰을 포함시켜주지 않으면 에러를 발생하게끔 되어있다. > CSRF ? https://namu.wiki/w/CSRF 관련 로그 2018-10-14 18:10 [DEBUG] /user/register.do at position 1 of 14 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 2018-10-14 18:10 [DEBUG] HttpSession returned null object for SPRING_SECURITY_CONTEXT 2018-10-14 18:10 [DEBUG] No S..
SqlSession was not registered for synchronization because synchronization is not active. Spring - myBatis 환경에서 트랜잭션이 적용되지 않으면 아래 로그를 볼 수 있다. Creating a new SqlSession SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1ad7d61e] was not registered for synchronization because synchronization is not active Fetching JDBC Connection from DataSource trace com.mchange.v2.resourcepool.BasicResourcePool@723b12e9 [managed: 20, unused: 19, excluded: 0] (e.g. com.mchange.v2.c3p0.i..
Jenkins Post steps 스크립트 실행 시 권한 없음 오류. [TMS] $ /bin/sh -xe /tmp/jenkins2697039887893472079.sh + /home/jyeory/app/shell/afterBuildPf.sh rm: cannot remove '/home/jyeory/app/tomcat-instances/tomcatPf/webapps/ROOT': Permission denied cp: failed to access '/home/jyeory/app/tomcat-instances/tomcatPf/webapps/ROOT.war': Permission denied Build step 'Execute shell' marked build as failureJenkins에서 빌드 후 스크립트를 실행 할 때 오류가 난다.권한이 문제인데, 우선 Jenkins..
java.lang.AbstractMethodError: Method com/mchange/v2/c3p0/impl/NewProxyPreparedStatement.isClosed()Z is abstract java.lang.AbstractMethodError: Method com/mchange/v2/c3p0/impl/NewProxyPreparedStatement.isClosed()Z is abstract org.mybatis mybatis 3.4.6 org.mybatis mybatis-spring 1.3.2 위 처럼 mybatis 3.4.6, mybatis-spring 버전을 1.3.2로 사용하고 테스트를 하니 위 에러가 나더라.. com.mchange c3p0 0.9.5.2 c3p0 라이브러리 버전이 낮아서 그런거 이므로 최신 버전으로 바꾸어 사용하면 된다.
Maven - cannot find symbol symbol Maven 빌드 중 아래 오류가 발생함.[DEBUG] incrementalBuildHelper#beforeRebuildExecution[INFO] Compiling 47 source files to C:\dev\workspace-class\spring-mybatis-grid\target\classes[DEBUG] incrementalBuildHelper#afterRebuildExecution[INFO] /C:/[경로]/java/com/edu/test/NamingReflection.java: C:\dev\workspace-class\spring-mybatis-grid\src\main\java\com\edu\test\NamingReflection.java uses unchecked or unsafe oper..
숫자 뒤 % 붙이기. 숫자 입력 시 콤마(,) 또는 %나 특정 기호를 붙여줘야 할 때가 있다. $( object ).keyup(function(e){ // 현재 입력값에서 공백 떼고, % 떼고 , if) 1 %5 > 15 var oldValue = $(this).val().replace(/\s/g, '').replace(/\%/g, ''); var rate; // back space if(e.which == 8){ // if) 15 > 1 rate = oldValue.substr(0, oldValue.length - 1); } else { rate = oldValue; } rate = (rate == '') // if) 5 %에서 백스페이스 누른 경우 rate 값은 빈 string ? '' // 화면에 공백 보여주고 : ra..
숫자 외 몇몇 키 만 입력받기 numbers, -, home, end, left arrow, right arrow, backspace 등 특정 키만 입력받기.. $( object ).keypress(function(e){ var key = e.which; // 누른 key code if((key >= 48 && key
String to Date 자바스크립트에서 String을 Date로 바꾸는 코드는 크게 2가지가 있다.1번 var src = '2018-11-29'; var values = src.split('-'); var date1 = new Date(values[0], Number(values[1])-1, values[2]); console.log( date1.toISOString() ); // 2018-11-28T15:00:00.000Z console.log( date1 ); // Sat Nov 29 2018 00:00:00 GMT+0900 2번 var src = '2018-11-29'; var date2 = new Date(Date.parse(src)); console.log( date2.toISOString() ); // 2018-11..