본문 바로가기

Develop/Spring48

[오류]localhost 페이지를 찾을 수 없음 localhost 페이지를 찾을 수 없음다음 웹 주소(http://localhost:8080/controller/home.jsp)에 대해 발견된 웹페이지가 없습니다. 1) path 설정 2) 포트 설정 3) url설정4) 프로젝트 - 웹서버등록 5) 서버 설정 톰캣 오류 화면 1234org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/root-context.xml]:Invocation of init method failed; nested exception is java.io.FileNotFoundE.. 2018. 8. 18.
[2-1등록,수정,삭제,조회 기능의 구현]6.CSS,JavaScript 준비 BootStrap으로 화면 구성 1. 파일 다운로드https://cafe.naver.com/gugucoding 에서 static.zip,include.zip 다운로드 2. 소스 복사static폴더의 bootstrap, dist, plugin 폴더: src>main>webapp/resources 로 복사include폴더: WEB-INF>views폴더로 복사 ※ 본 게시글은 코드로 배우는 스프링 웹 프로젝트 책을 참고하여 작성하였습니다. 2018. 8. 18.
[2-1등록,수정,삭제,조회 기능의 구현]5.스프링의 UTF-8 처리 필터 등록 UTF-8을 사용할 경우 스프링에서 제공하는 필터를 등록해주는 것이 좋음 web.xml12345678910111213 encoding org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 encoding /* Colored by Color Scriptercs 2018. 8. 18.
[2-1등록,수정,삭제,조회 기능의 구현]1.개발전준비-데이터베이스 관련 1. DataSource 등록 123456789101112131415161718192021222324252627282930313233package org.zerock.controller; import java.sql.Connection;import java.sql.SQLException; import javax.inject.Inject;import javax.sql.DataSource; import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.test.context.ContextConfiguration;import org.springframework.test.context.junit4.SpringJUnit4ClassR.. 2018. 8. 18.
[오류]cvc-elt.1: Cannot find the declaration of element 'beans'. cvc-elt.1: Cannot find the declaration of element 'beans'. 2018. 8. 18.
[06.스프링+MyBatis]7.MyBatis의 로그 log4jdbc-log4j2 log4jdbc-log4j2 라이브러리MyBatis의 로그를 지원 1. pom.xml에 log4jdbc-log4j2 추가 2. 메이븐 업데이트 후 라이브러리 모듈 추가 확인 3. 드라이버 클래스의 연결 URL 수정드라이버 클래스와 연결 URL은 데이터베이스와 연결된다. driverClass 변경1cs 4.log4jdbc 셋팅 1) log4jdbc.log4j2.propertiess 파일 생성 작성 1log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegatorcs 2) 로그 레벨 작성 rogback.xml 작성 123456789101112 Colored by Color Scriptercs 2018. 8. 18.