보호되어 있는 글입니다.
보호되어 있는 글입니다.
1. insert import org.springframework.data.mongodb.core.MongoTemplate; @Autowired private MongoTemplate mongoTemplate; public class 클래스명{ public void 함수명() { Query query = new Query(); Update update = new Update(); // where절 조건 query.addCriteria(Criteria.where("컬럼명1").is("조건값1")); query.addCriteria(Criteria.where("컬럼명2").is("조건값2")); mongoTemplate.insert(insertVO, "collection명"); } } 2. update im..
1. clipboard.js 다운로드 clipboard.js 다운로드 : https://clipboardjs.com/ clipboard.js A modern approach to copy text to clipboard. No Flash. No frameworks. Just 3kb gzipped clipboardjs.com 2. html data-clipboard-text 안에 복사할 텍스트를 넣어준다. 3. js $(function(){ var clipboard = new ClipboardJS('#copy'); clipboard.on('success', function(e) { alert("텍스트 복사가 완료되었습니다."); }); clipboard.on('error', function(e) { ale..
1. html 2. js $(function(){ $('#userPw').keyup(function(){ $('#chkNotice').html(''); }); $('#userPwChk').keyup(function(){ if($('#userPw').val() != $('#userPwChk').val()){ $('#chkNotice').html('비밀번호 일치하지 않음 '); $('#chkNotice').attr('color', '#f82a2aa3'); } else{ $('#chkNotice').html('비밀번호 일치함 '); $('#chkNotice').attr('color', '#199894b3'); } }); }); [예시] 비밀번호를 입력해주세요.

favicon.ico 404 Not found 에러 날 때 출처 : https://stackoverflow.com/questions/31075893/im-getting-favicon-ico-error I'm getting favicon.ico error I downloaded the Netbeans IDE to code in HTML. I'm new to it. When I run my code, chrome is opening and everything is working just fine. I'm getting some sort of error in the Output - Browser Log. stackoverflow.com

1. canvas를 사용하여 이미지에 다중 박스 표시하기 이미지 원본 Your browswer does not support HTML5 canvas var faceInfo = { imgUrl : '해당 이미지 url', faceLoc : [{ x : 85, y : 30, w : 80, h : 80, color : 'yellow', personNm : '인물 A' }, { x : 220, y : 45, w : 60, h : 70, color : 'yellow', personNm : '인물 B' }, { x : 160, y : 110, w : 58, h : 60, color : 'yellow', personNm : '인물 C' }] } // set Canvas setCanvas(faceInfo); /** *..
request.getContextPath()로 html에 가져온다. data 커스텀 데이터에 th:를 선언해준다. (타임리프는 th:를 꼭 붙여줘야함) js 파일에 다음과 같이 가져온다. var contextPath = $('#contextPathHolder').attr('data-contextPath') ? $('#contextPathHolder').attr('data-contextPath') : ''; ajax 호출 등 js에서 contextPath 사용 가능 $.ajax({ url : contextPath + url , type : type , data: params , contentType : "application/json; charset=utf-8" , success: function(data..
- Total
- Today
- Yesterday
- thymeleaf contextpath
- Thymeleaf
- 비밀번호 확인 jquery
- 키보드 핫키
- favicon.ico
- hotkeys.js
- mongoTemplate update
- favicon.ico 404
- MongoTemplate
- mongoTemplate insert
- mongodb
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |