본문 바로가기

Others

(103)
[스프링] The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application 1. 이 JSP 에 추가 되지 않았거나 2. 이와 관련된 라이브러리가 추가되지 않았기 때문.https://tomcat.apache.org/download-taglibs.cgi위 링크에서 다운로드후 lib 폴더를 WEB_INF 폴더 바로 아래에 추가!
[스프링] org.springframework.web.servlet.PageNotFound - Request method 'GET' not supported org.springframework.web.servlet.PageNotFound - Request method 'GET' not supported JSP에서 form의 Method를 post를 해줘서@RequestMapping ( value="~~~", method=RequestMethod.POST)로 설정해 주었는데 위와 같은 에러가 났다면 일단 @RequestMapping의 method를 RequestMethod.GET으로 바꾸자. 궁금증... 나는 form을 post로 했는데 왜 GET으로 바꾸어주어야지 에러가 나지 않는건지 알아봐야한다,,,
[스프링] Servlet.service() for servlet [appServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause java.lang.NullPointerException Query에 Null 값이 들어갔을 경우 발생하는 문제입니다. 해결 방법 1. Controller, DAO, Service 단에서 각각에 넘겨주는 쿼리값의 주입이 됐는지 확인2. DB가 run 중인지 확인
[스프링] No mapping found for HPTT request with URI 여러개의 컨트롤러(서로 다른 패키지의)를 사용하고 싶을 때 다음과 같은 에러를 만날 수 있다. WARN : org.springframework.web.servlet.PageNotFound - No mapping found HTTP request with URI [ ... ] in DispatcherServlet with name 'appServlet' [해결방안] servlet-context.xml 파일의 base-package 부분을 다음과 같이 모두 포함하게 * 을 사용해서 변경.(이전은 특정패키지명이 들어있었다. 그렇게 되면 그 패키지 안의 컨트롤러의 value 값 URI만 매핑된다.) 이 방법 외에 component-scan 을 무한으로 사용해서 확장...ex) ...
[스프링] http //java.sun.com/jsp/jstl/core 에러 http //java.sun.com/jsp/jstl/core 에러The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application ... jstl을 이용하면서 이런 에러가 났다면 jstl을 다운받지 않아서 생긴 일.다음 주소에서 본인의 jstl 버전에 맞는 zip 을 다운받은 후 WEB-INF 의 lib 폴더에 넣어주면 된다. 설치 파일 다운로드 링크 : http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/
[스프링] 톰캣 Error deploying configuration descriptor _____.xml tomcat/conf/Catalina/localhost 이 경로에 ____.xml을 지운다.
[스프링] Server Tomcat v8.5 Server at localhost failed to start. 톰켓 서버에서 Server Option 탭 > Publish module contexts to separate XML files 체크해주기!
Session (세션) Session (세션) 쿠키를 개선한 방식. 쿠키를 조금 더 안전하게 (더 많은 데이터를) 사용자의 컴퓨터에 저장한 것과 같은 효과를 나타낸다. 웹브라우저가 서버에 접속하면, 서버는 웹 브라우저에게 응답을 하면서 쿠키로 모든 데이터를 저장하게 된다. 예를 들면 쇼핑카트라고 한다면, 사용자가 어떤 제품을 카트에 담았는지를 제품에 대한 목록을 사용자의 컴퓨터에 저장하고 있다. 이런 방식으로 접근을 한다면 여러가지 문제점이 있다. 제일 큰 문제점은 보안 : 사용자의 컴퓨터와 서버가 서로 통신하는 과정에서 ID,PW와 같은 중요한 정보가 왔다갔다 한다는 것은 중간에 누가 가로챌 수 있다. 이런 문제점을 개선하기 위해서 쿠키가 가지고 있는 기능과 서버쪽 데이터를 저장할 수 있는 예를 들면 DB, 파일 등을 잘 조..