본문 바로가기

반응형

개발

(63)
Uncaught TypeError: $ is not a function 크롬 개발자 도구 디버깅에 아래와 같은 오류가 뜬다Uncaught TypeError: $ is not a function 검색결과 $가 안먹는다고 하는거 같았다.뒤에 (jQuery)를 붙여도 안됨. $(document).ready(function{}); 을 jQuery(document).ready(function($){});로 바꾸니까 해결되었다. 예약어 충돌나는데var t = $.noConflict(); 처럼 $을 t로 예약어 변경이 가능하다. https://stackoverflow.com/questions/12343714/typeerror-is-not-a-function-when-calling-jquery-function https://thecodingstuff.com/how-to-properly-u..
Ambiguous handler methods mapped for HTTP path HTTP Status 500 – Internal Server ErrorType Exception ReportMessage Request processing failed; nested exception is java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/com/se': {public java.lang.String x(org.springframework.ui.Model,javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang..
이클립스 Save Failed 오류 오류 : Save All Failed Compilation unit name must end with .java, or one of the registered Java-like extensions I had an errant breakpoint set in the file. Removing the breakpoint resolved the problem.디버거 브레이크 포인트 지우면 문제 해결된다. breakpoint 를 찾아서 라인 오른쪽 클릭 -> disable breakpoint 클릭
[spring] ajax 406에러 ajax를 통해 form을 넘기는 과정에서 406에러가 발생하였다. 1. spring에서 ajax json을 사용하기 위해선 pom.xml에 jackson라이브러리를 추가해야 한다. 123456 org.codehaus.jackson jackson-mapper-asl 1.9.13 Colored by Color Scriptercs 2. 라이브러리를 추가 해도 에러가 난다면 @RequestMapping(value = "/articles/action", headers="Accept=*/*", produces="application/json") public class ArticlesController { }코드 추가 produces="application/json" https://stackoverflow.com/..
[Spring]myBatis, jdbc 차이 JDBC(Java Database Connectivity)는 자바에서 데이터베이스에 접속할 수 있도록 하는 자바 API이다.JDBC는 데이터베이스에서 자료를 쿼리하거나 업데이트 하는 방법을 제공한다.자바는 JDBC를 통해 mysql, oracle에 접근한다.jdbc는 1개 클래스에 반복된 코드가 존재, 한 파일에 java언어와 sql언어가 있어 재사용성 등 안좋은 단점이 있다. 마이바티스는 JDBC의 작업을 간편하게 해주는 프레임워크이다.SQL문을 자바 코드에서 분리하여 xml 파일로 따로 관리한다.spring에서 jdbc를 사용할 수 있지만 , mybatis 를 사용 하는것이 보통이다.jdbc에서 사용해야 하는 Connection, Statement등을 mybatis가 직접 관리해서 코드를 줄여준다.j..
git 되돌리기 git revert/reset차이 dcbaa부터 d까지 순서대로 commit 한 상태일 때 되돌리기를 해보자. 되돌리기 방법중 대표적인 Revert와 Reset은 차이가 있다. 1. Revert: d를 취소하는 commit을 발생 시킨다.2. Reset : d를 아예 취소시킨다. Revert를 할 경우 d를 취소하는 commit 을 추가하게 된다. Revert를 실행 한 후 commit 리스트를 살펴보면-ddcba순서로 나타나게 되며 이전 d를 commit 한 이력은 그대로 둔 상태에서 추가로 -d commit이 추가된것을 볼 수 있다.이 후 상대방에게도 pull할 경우 -d가 추가된다. Reset은 d를 아예 삭제 한다.Reset을 실행 한 후 commit 리스트를 살펴보면cba 순서로 나타나며 이전 ..
[git]시작하기/ 생성, 원격저장소 연결, 파일올리기까지 전부 (init,commit,remote,push) 프로젝트 git에 새로 올리면서 포스팅! - git사용법 설명 잘 되어 있는 곳 : https://rogerdudler.github.io/git-guide/index.ko.html- git bash 설치 및 github 레파지토리 생성 처음 레파지토리를 만들면 나오는 화면 아래 create a new repository on the command line 부분을 따라하면 끝 ! 순서대로 해보자 1. git에 올릴 프로젝트의 파일 경로로 이동한다. 직접 입력 또는 bash 사용일 경우 아래와 같이 쉽게 이동 가능 2. git init 입력git init 입력시 설정한 경로에 .git 폴더가 생성된다. (없다면 숨김폴더 찾기) 3. git status 입력git status를 통해 현재 상황 파악 가능 fi..

반응형