반응형

<p :inner-html.prop="data | filter"></p>
이렇게 쓰시면 됩니다.

https://stackoverflow.com/questions/49852480/adding-html-in-vue-js-using-data-filters

Adding html in Vue.js using data filters?

I am trying to use the Filter feature in Vue.js to add html tags inside a String, the documents suggests this should be somehow feasible but I'm getting nowhere. The point is the data should just a

stackoverflow.com

반응형
반응형

어느날 개발중에 다소 생소한 에러를 하나 마주쳤습니다.

위와 같은 에러였는데요

 

org.apache.ibatis.reflection.ReflectionException: Illegal overloaded getter method with ambiguous type for property 'password' in class '클래스명'. This breaks the JavaBeans specification and can cause unpredictable results.

 

대충 이런 내용의 에러였는데요

 

검색을 해보니 비슷한 오류를 겪으신 분들이 생각보다 많았습니다.

 

대략적으로 설명을 하자면 lombok 을 사용해서 모델객체를 만들 때

저의 경우

패스워드를 사용할지 여부를 저장하는 boolean 타입의 isPassword 와

패스워드를 저장하는 string 타입의 password

이렇게 두개의  변수를 선언하였는데

 

lombok 에서 두개의 변수명에 동시에 password 라는 단어가 들어가서

getter setter 생성 시 두개를 동일한 변수라고 인식하여 생기는 오류였습니다.

 

이런 오류 발생 시 is 뒤에 오는 변수명이 중복되지 않게 설정해주면

오류가 해결됩니다.

반응형
반응형

Jquery Datepicker 사용시

 

위와 같은 오류가 날 때가 있었습니다.

 

한참을 찾아봐도 해결이 되지 않다가

너무 사소한 실수인걸 알고나서

허무했네요

 

해결방법은

다른 tag 의 id 값 중 Datepicker 를 사용한 input 의 id 와 중복되는 것이 있는지 

확인해보시면 됩니다.ㅎㅎ

 

stackoverflow.com/questions/17781425/datepicker-returning-uncaught-typeerror-undefined-currentday

 

Datepicker returning uncaught typeError: undefined 'currentDay'

I've been using jQuery UI with Bootstrap and I seem to run into a problem that I haven't had before. I'm not sure what has changed; I've tried setting back different version of jQuery and I didn't ...

stackoverflow.com

 

반응형
반응형

document.getElementById('adminA').appendChild("<span class='sr-only'>(current)</span>");

위의 코드를 실행하면 

아래와 같은 에러가 발생합니다.

 

 

Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.

대충 해석해보면 appendChild 는 Node 만 추가할 수 있다.

이런 얘기입니다.

따라서 위의 코드는 잘못된 코드이고

appendChild 를 사용하려면

 

var onSpan=document.createElement('span')

onSpan.innerHTML="(current)"

onSpan.classList.add('sr-only')

document.getElementById('adminA').appendChild(onSpan);

 

위와 같이 사용하시면 해결이 됩니다.

 

출처:

stackoverflow.com/questions/27079598/error-failed-to-execute-appendchild-on-node-parameter-1-is-not-of-type-no

 

Error: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'

I am trying to drag and drop an image on a div. The image does not get get dragged onto the div and gives the following error Uncaught TypeError: Failed to execute 'appendChild' on 'Node': paramet...

stackoverflow.com

반응형
반응형

<form>

    <button onclick='func()'>다른버튼</button>

</form>

 

이런식으로 버튼이 폼 안에 있을 때

버튼을 눌렀을 때 onclick에 정의된 펑션이 동작하지 않고 form 의 submit 펑션이 실행되는데

자동으로 submit 되는걸 방지하고 다른 동작을 실행시키고 싶으시다면

 

 

<form>

    <button type='button' onclick='func()'>다른버튼</button>

</form>

 

이런식으로 버튼에 타입을 버튼으로 주면 해결됩니다.

 

반응형
반응형

setTimeout( function(){ $(window).focus(); }, 50 );

 

이런식으로 setTimeout 안에 포커스를 두면 잘 동작 합니다.

 

크롬에서만 일어나는 버그라고 하네요

 

stackoverrun.com/ko/q/10593877

 

javascript - $ (창) .focus()가 Chrome에서 제대로 실행되지 않았습니다.

내 페이지의 애드 센스 요소에 대한 클릭 수를 추적하고 싶습니다. 이를 달성하기 위해 창 개체에 포커스를두고 포커스가 사라지면 마우스가 애드 센스 iFrame 영역에 있는지 확인합니다. 그런 다

stackoverrun.com

 

반응형
반응형

svn 을 이용하여 작업을 하던 도중

update 가 되지않고 아래와 같은 에러메세지가 출력됬던 적이 있습니다.

 

 

이분의 블로그의 도움을 받아 문제를 해결했습니다.

https://benfatto.tistory.com/33

 

SVN | E155004 - SVN locked 에러 해결

잊을만 하면 찾아오는 SVN 대표적인 에러 LOCK. 간만에 쏟아지는 파일들 업데이트를 받다가 꼬여버렸다. 위와 같은 경우는 폴더 자체가 lock이 걸린 모양이다. Some resources were not updated. svn: E155004: Wo.

benfatto.tistory.com

해결 방법은

 

자신의 프로젝트 폴더에 아래의 .svn 이라는 폴더가 있는데

해당 폴더를 들어가보면

 

위와 같이 wc.db 라는 파일이 있다.

이 파일을 수정해야하는데 수정하기 위해서

SQL lite(https://sqlitebrowser.org/) 라는 프로그램을 설치해야 하는데

설치 방법은 위의 링크 홈페이지 접속 후 Download 탭에서

 

 

2020 아래의 Version 3.12.0 released (2020년 07월 23일 기준)

이라고 써 있는 부분을 클릭한 후

 

 

자신의 버전에 맞는 설치 파일을 다운받으시면 됩니다.

다운받은 zip 압축 파일을 풀면

많은 파일 목록이 나오는데 그중

 

DB Browser for SQLite 라는 파일을 실행시키시고

파일 > 데이터베이스 열기에서

해당 프로젝트의 .svn 폴더에 wc.db 라는 파일을 불러온 후

 

SQL 실행 탭에서

 

DELETE FROM WC_LOCK 

이라는 명령어를 입력하고

재생버튼처럼 생긴 Execute 버튼을 누르거나

혹은 키보드 F5 버튼을 누른 후

 

변경사항 저장하기를 눌러 저장해주시면

잠겨있던 svn 이 lock 이 풀리고 다시 정상적으로 작동합니다.

반응형
반응형

http://myblog.opendocs.co.kr/archives/1657

 

[문제해결] 심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener | Opendocs

1. 문제상황 > 다음과 같은 에러와 함께 Eclipse에서 Tomcat이 실행되지 않았다. 심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener at org.apa

myblog.opendocs.co.kr

를 참고하여

 

위와같이 조치해주면 해결된다.

반응형

+ Recent posts