본문 바로가기

Spring29

[2-2.영속계층, 비즈니스계층]1.BoardVO 작성 1. BoardVO작성테이블의 구조화를 객체화 시킴 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384package domain; import java.util.Date; public class BoardVO { private Integer bno; private String title; private String content; private String writer; private Date regdate; private int viewcnt; public BoardVO(.. 2018. 8. 18.
[오류]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등록,수정,삭제,조회 기능의 구현]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.
[2-1등록,수정,삭제,조회 기능의 구현]3.프로젝트 생성 필요한 것들 정리 1. pom.xml1)java-version2)spring version3)spring compile - ${java-version}으로 셋팅 2. JDBC1) 자바 JDBC2) 스프링 JDBC 3. MyBatis 4. MyBatis - Spring 5. Spring-test 6. log4j2 1. pom.xml1) java version2) spring version3) spring compile - ${java-version} 1,2) java version & spring version 3) spring compile - setting 자바버전으로 설정 2. JDBC1) mySQL드라이버(자바 jdbc)2) 스프링 jdbc 1) mySQL드라이버(자바 jdbc):mysql-conn.. 2018. 8. 18.