전체 글
-
- No mapping found for HTTP request with URI [/] in DispatcherServlet with name 'appServletError 2020. 1. 17. 00:47
- No mapping found for HTTP request with URI [/] in DispatcherServlet with name 'appServlet 이 에러를 맞닥뜨렸다. 희희 @RequestMapping(value = {"/", "index.do"} 부분에서 value 부분이 오타가...났었다. 저에러를 그대로 나름(?) 해석하자면 uri 부분을 DispatcherServlet 이 매핑 하지 못하였다. 왜냐면 못찾아서... 흗... 오타를 찾도록하자 value 부분의 오타나 다른 컨트롤러와 같이 명시 하지 않도록 하자! 증슨뜩브르츠릐즈
-
WARN : org.springframework.web.servlet.PageNotFound - Request method 'GET' not supportedError 2020. 1. 17. 00:42
스프링 Controller 에서 submit 하는 input 태그에서 post 였다 심지어메인페이지는 오직 POST 메서드를 지원하기?때문에 WARN : org.springframework.web.servlet.PageNotFound - Request method 'GET' not supported GET메서드를 서포트 할 수 없었다고 한다. RequestMethod.GET 으로 바꿔준 후 에 이 Request method 'GET' not supported 에러를 해결 하였다.
-
면접 예상 질문IT 정보 기술/etc 2020. 1. 13. 02:06
1.MVC 가 무엇인지 설명 해 주실 수 있을까요? - 객체지향 프로그래밍에서, MVC란 사용자의 인터페이스를 성공적이며 효과적으로 데이터 모형에서 관련시키기 위한 방법론 또는 설계방식중 하나이다. Model - 소프트웨어 응용과 그와 관련된 고급 클래스 내의 논리적 데이터 기반 구조를 표현, 이 목적 모형은 사용자 인터페이스에 관한 어떠한 정보도 가지고 있지않다. View - 사용자 인터페이스 내의 구성요소글을 표현(사용자에게 보여지는 화면, 인터페이스) Controller - Model 과 View를 연결하고 있는 클래스를 대표 , Model 과 View 내의 클래스들 간 정보 교환하는데 사용 2.DAO 패턴이 무엇인가요? DAO(Data Access Object)는 DB를 사용해 데이터를 조회하거나..
-
[error] Mapped Statements collection does not contain value for , 존재하지않는 맵퍼Error 2020. 1. 6. 00:05
Mapped Statements collection does not contain value for ~ 위 에러는 MemberMapper의 sql구문들중 id property가 selectEmailCount인것이 없다! 체크해야할 사항1. mapper에 id property가 정확 한 지 확인 한다.2. 1번의문제가 아니라면 impl에서 오타가 나지 않았는지 확인한다.
-
절대경로 ContextPath 가져오는 방법Back-end/JSP 2020. 1. 3. 13:48
웹 페이지이 경로에 따른 리소스 참조 문제- 파일에 대한 참조를 상대 경로로 처리하는 경우컨트롤러의 URL 에 따라 상위 경로를 통한 참조인지 현재 경로에서 시작되는 참조인지를구분 해야 한다. 즉 리소스에 대한 참조 경로가 매번 변경된다. -파일에 대한 참조를 절대경로로 처리하는 경우리로스에 대한 참조가 컨트롤러의 위치에 상관 없이 일정하게 유지된다. ContextPath를 가져오는 방법ㆍ JAVA웹 프로그램에서의 현재 프로젝트 경로를 ContextPath라고 한다. ㆍ서블릿이나 JSP의 JAVA소스코드에서의 처리request.getContextPath() ㆍJSTL에서의 처리${pageContext.request.contextPath}
-
참조키 컬럼의 null 허용 처리DB 2020. 1. 2. 13:45
참조키 컬럼의 null 허용 처리자동으로 추가되는 참조키 컬럼들은 기본적으로 Not Null 상태가 된다.이 경우 상위 테이블의 데이터가 삭제되기 위해서는 자신을 참조하는 하위 데이터가 존재하지 않아야 한다. 만약 자신을 참조하는 하위 데이터가 존재할 경우하위 데이터를 먼저 삭제해야만 삭제가 가능하다.(참조키 제약조건) 이 경우의 문제점 회원이 탈퇴하기 위해서는 그 동안 작성한 모든 게시물과 덧글이 삭제 되어야한다.실제로 이러한 처리는 커뮤니티 구축에 안좋은 영향을 줄 수 있기 때문에,가능하다면 회원이 탈퇴할 경우 함께 삭제 되어야 할 데이터와 삭제 되지 않고 유지되어야 하는 데이터를 구분하는것이 좋다.