전체 글 (297) 썸네일형 리스트형 [스프링 서버 세팅] Cannot find ./catalina.sh 해결 : chmod +x catalina.sh [스프링] Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: 출처: http://8boknote.tistory.com/12 [8BOKNOTE] 오류는 mybatis-config에서 경로를 잘못 지정했을 경우 발생. 해결 방법 1. root-content의 sqlSessionFactory에 configLocation의 mybatis-config.xml 파일 연결 2. mybatis-config에서 를 처리했을 경우 그 속의 패키지 명을 정확하게 입력하면 된다. [스프링] 비밀번호 암호화 (bcrypt) 1. pom.xml에 스프링 시큐리티 추가 org.springframework.security spring-security-web 4.2.1.RELEASE org.springframework.security spring-security-core 4.2.1.RELEASE org.springframework.security spring-security-config 4.2.1.RELEASE * 스프링 버전이랑 맞춰주기 (소수점까지 말고 제일 앞 숫자만) 2. spring-security.xml 파일 생성 (네임스페이스에서 bcrypt 체크) 3. web.xml에 spring-security.xml 추가 contextConfigLocation /WEB-INF/spring/root-context.xml /WEB-.. [스프링] org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class 해결방법 : pom.xml 스프링 버전 확인! 1.84.2.3.RELEASE1.6.101.6.6 [Postgresql] brew로 설치한 Postgresql 서버 시작하기 brew로 postgresql 설치하기 brew tap petere/postgresql# search로 원하는 postgresql 버전을 찾을 수 있음 brew search postgresql brew install petere/postgresql/postgresql@10 ( 이 글을 정리하기 전에 나는 brew update 이후, brew install postgresql 로 설치 ) 디비 서버 실행하기 pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start 그 다음부터는 : psql postgres ubuntu에서는 service 명령어로 postgres를 실행시키던걸 pg_ctl 명령어로 실행시켜주면 된다. [스프링] The content of element type "mapper" must match "EMPTY". 쿼리를 작성하는 xml의 DTD 확인! 의 dtd 에서 mapper 에 대한 정보가 없어서 발생하는 문제 으로 맞게 들어가 있는지 확인해보자. [스프링] 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으로 바꾸어주어야지 에러가 나지 않는건지 알아봐야한다,,, 이전 1 ··· 25 26 27 28 29 30 31 ··· 38 다음