* 원인 Request 시 csrf 토큰 안보낸 경우 * 해결 1 - 일반 form 전송 다음 파라메터 추가 * 해결 2 - ajax 전송시 헤더에 추가 (파라메터와 보내는 이름이 좀 다르지..) https://www.popit.kr/spring-security-ajax-%ED%98%B8%EC%B6%9C-%EC%8B%9C-csrf-%EA%B4%80%EB%A0%A8-403-forbidden-%EC%97%90%EB%9F%AC/ $.ajax({ url : 'ajax/saveLog', ... beforeSend : function(xhr){ xhr.setRequestHeader("${_csrf.headerName}","${_csrf.token}"); }, ... # 참고 : jqueyr ajax 헤더 추가 ht..
jsp (line: 43, column: 2) According to TLD or attribute directive in tag file, attribute var does not accept any expressions var 에다가 ${} 넣는거 아냐 items 는 ${} 맞아
GIT PUSH 중 충돌 (rejected non-fast-forward) * 상황 1 : commit 충돌로 인한 오류 1. 다른 User 가 (remote)origin/master 에 수정 commit 2. 이 commit 을 pull 하기 전에 내가 같은 브랜치에 수정 3. pull 하지 않은 상태 에서 commit 하면 오류 발생함. (rejected non-fast-forward) https://devx.tistory.com/entry/git-push-%EC%8B%9C-%EC%98%A4%EB%A5%98%EB%A9%94%EC%84%B8%EC%A7%80-%EB%B0%9C%EC%83%9D%EC%9B%90%EC%9D%B8 * 해결 1 - 그냥 강제로 미는 방법 git push --force - 이클립스..
* 개요 Caused by: org.codehaus.plexus.archiver.ArchiverException: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) *환경 Eclipse Spring Maven * 해결 pom.xml 에 maven-war-plugin 추가 https://stackoverflow.com/questions/5351948/webxml-attribute-is-required-error-in-maven
* 개요 웹 프로젝트 서버에 올려서 구동하는데 다음 오류 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener * 환경 Eclipse Spring Maven * 원인 pom.xml 에 packaging jar 로 되어있음 * 해결 packaging war 로 변경
* 부쩍 느려진 컴퓨터. 딱히 뭐 한 것도 없는데 왜 이러지? 작업관리자의 백그라운드 프로세스와 프로그램 목록을 확인하고 은행과 관공서에서 정작 지들은 다 털리면서 나에게는 조심하라며 컴에 심어준 다양한 보안프로그램... - 삭제 목록 ms_exqhelper 검색 도우미 ? http://sw.watclean7.com/index.php?name=ms_exqhelper npEfdsWctrl nProtect 보안 얜 지워지지도 않아 https://codingrun.com/50 nProtect Netizen v5.5 방화벽 Secure KeyStroke 4.0 키보드 보안 TouchEn nxKey with E2E for 32bit 키보드 보안 TouchEn nxWeb_32 키보드 보안 Veraport(보안모듈 ..
* 개요 ResponseEntity#getHeaders().setContentType(...) 를 호출했는데 UnsupportedOperationException 발생 * 원인 getHeaders() 로 HttpHeaders 가져올때는 Collections.unmodifiableList() 를 씌워서 반환함. 헤더 설정은 생성당시에만 하고, 그 뒤에는 보기만 하라는거. * 해결 헤더는 생성시에 설정함. MultiValueMap headers = new LinkedMultiValueMap(); headers.add("Content-Type", "application/json; charset=UTF-8"); ResponseEntity response = new ResponseEntity(/*바디*/, hea..
String 반환 대신 ResponseEntity 사용 header 에는 "Content-Type", "application/json; charset=UTF-8" 추가 되어 있어야 함 https://otep.tistory.com/38 * 기타 StringHttpMessageConverter 선언하는 방법 있었으나 알 수 없는 에서 SAXParserException 발생하여 시도해보지 못함. https://stackoverflow.com/questions/19218122/cvc-complex-type-2-4-c-the-matching-wildcard-is-strict-but-no-declaration-can
* 개요 mybatis 에 resultType 에 제대로 된 클래스명 썼음에도 불구하고 다음 오류 발생 ClassNotFoundException: Cannot find class: xxx.xxxx.xxx at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:120). * 문제 원인 - 일반적인 class 의 오타, 패키지명 오타, alias 선언 문제 등이 아니고 그냥 Project 꼬인 경우임 - resultType으로 할 클래스를 A 라고 하면, A 클래스를 만들었다가 지웠다가 다시 만들거나, 이름을 변경하거나 하면서 내부적으로 꼬이게 된듯. - 프로젝트 생성 초기에 클래스 이름 정한다고 이름 바꾸고 영어사전 찾..
* 개요 mdb.js 추가했는데 다음 오류 나며 미작동 mdb.min.js:1 Uncaught TypeError: Cannot read property 'addEventListener' of null at Object.t.init (mdb.min.js:1) at mdb.min.js:1 * 해결 body 로딩 완료 후 해당 js 가 작동해야 하는데 순서가 바뀌면서 없는 요소롤 불러와 생기는 오류 https://mdbootstrap.com/support/general/uncaught-typeerror-cannot-read-property-addeventlistener-of-null/ 불러오는 중입니다... head 에 쳐박혀 있는 mdb.js 호출 부분을 body 로 보내자 해결
* 환경 Spring boot 2.XX Eclipse 1. Application 클래스에 다음 어노테이션 추가 @PropertySource(value = { "classpath:/application-${spring.profiles.active}.properties" }) - 추가 했는데도 계속 다음 오류 나는 경우? java.io.FileNotFoundException: class path resource [application.properties] cannot be opened because it does not exist => DB Confg 나 Security Config 파일을 따로 두고 있었는데, 거기서도 @PropertySource 선언해놓은 상태였던 경우.. 2. 파일 준비 applicat..