분류 전체보기(87)
-
[Mybatis] SqlSession 오류 - 해결
프로젝트 구조ㄱ 1. Pom.xml 의존성 추가(Spring JDBC, Mybatis, Mybatis Spring) 2. Mybatis Mapper 파일 생성 (board-mapping.xml) 3. Mybatis Config 파일 생성 4. 스프링 설정파일(applicationContext.xml)에 SqlSessionFactory 등록 - DB연동 구현에 사용할 SqlSession을 얻기 위함 5. BoardDAOMybatis 클래스 구현(상속으로) 6. 테스트를 위해 서버를 가동하면 다음과 같은 오류가 발생합니다. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardDA..
2021.08.06 -
[스프링] pom.xml 등록 목록 (버전은 바뀔 수 있음)
목록 MySQL (MySQL 연결) AspectJ(aop) (로그와 같은 공통 로직) DBCP (일정 개수의 Connection 유지) Spring JDBC (자바와 DB 연결) FileUpload (파일 업로드) Jackson2 (데이터 변환) Mybatis (DB 사용 지원, SQL문 분리) Mybatis Spring (Mybatis – Spring 연동) Maven 버전 보는 사이트 : https://mvnrepository.com/ ------------------------------------------------- mysql mysql-connector-java 8.0.26 org.aspectj aspectjrt ${org.aspectj-version} org.aspectj aspectjwe..
2021.08.05 -
이클립스 완전 삭제하기
다음 폴더들을 모두 지워줍니다. eclipse를 다운받은 폴더 : eclipse workspace(본인이 정한 폴더명) C:/user(또는 사용자)/본인이름 경로에 있는 폴더 : .eclipse .p2 .eclipse-workspace(있는 경우)
2021.08.02 -
[STS4] 이클립스 마켓 실행이 안되요.
STS4에서 이클립스 마켓을 실행할 때, 다음과 같은 오류가 발생합니다. (저의 경우 이클립스와 STS 두개를 설치했었는데 이클립스를 완전 삭제하고 STS를 다시 실행하니 되었습니다. ==> 완전 삭제 방법) Cannot install remote marketplace locations: Cannot complete request to http://marketplace.eclipse.org/catalogs/api/p: 1-1. Window - Preferences - General - Network Connection으로 들어갑니다. 1-2. Active Provider 에서 Manual로 바꾼 뒤 Apply and Close를 클릭합니다. 1-3. 재부팅 하고 MarketPlace실행 저의 경우에는 되..
2021.08.02 -
[Spring] Spring MVC에서 Date 타입 변환 오류
MySQL 메뉴얼 사이트 : https://dev.mysql.com/doc/refman/8.0/ 게시글을 수정하는 도중 Date의 매핑에 실패합니다. WARN : org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver - Resolved [org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors Field error in object 'boardVO' on field 'regDate': rejected value [2021-07-27]; codes [typeMismatch.board..
2021.07.27 -
[연습] MVC 프레임워크 형식 게시판 (Spring MVC 적용)
@ 이전 프로젝트에서 직접만든 Controller 인터페이스, HandlerMapping, ViewResolver 클래스를 제거 후 스프링에서 제공하는 클래스 사용 @ 인코딩 필터 추가 @ JSP 페이지를 간접 호출로 변경
2021.07.26