본문 바로가기

728x90
반응형

Spring

(21)
[Spring MVC] Tiles 개념과 설정 Tiles란? Tiles를 이용하지 않으면 화면 내에 공통적으로 들어가게 될 header, footer 같은 소스를 jsp 파일로 분리한다. 그리고 각 화면의 jsp 파일마다 include하는 방식을 사용한다. 이럴 경우, 모든 화면에 header, footer를 include 해야 하고, 페이지의 레이아웃이 바뀔 때 jsp 파일을 모두 수정해야 하기 때문에 번거롭다. 이 때, 웹 페이지의 header, footer, 메뉴처럼 공통적인 소스를 분리하여 화면의 jsp 파일에는 각 화면에 해당하는 소스만 작성하고 페이지의 레이아웃을 한 곳에서 설정하여 관리할 수 있도록 하는 프레임워크이다. 처음엔 Tiles와 Thymeleaf 둘 중 하나를 선택해서 사용해야 하는 줄 알았다. 하지만 Tiles는 레이아웃 템..
[Spring Famework] 오라클 데이터 베이스와 연동 JDBC 연결 ojdbc6.jar 파일 경로 - SQL Developer 설치 시 C:\sqldeveloper\jdbc\lib - 미설치 시 (DB가 설치된 폴더 내부) C:\app\컴퓨터 이름\product\11.2.0\dbhome_1\jdbc\lib 만약 oracle.com 사이트 JDBC Driver 항목에서 다운로드 한다면, 반드시 현재 데이터베이스 버전에 맞는 드라이버를 이용해야 함 (이 차이로 엄청난 에러를 만들어 내기도 하기 때문) http://www.oracle.com/technetwork/database/application-development/jdbc/downloads/index.html ① 프로젝트에서 오른쪽 마우스 버튼 - Build Path - Configure Build Pat..
시작하기에 앞서 This post was written to study English and Spring. 이 포스팅은 스프링과 영어 공부를 위해 작성되었습니다. Please tell me if there is anything that needs to be corrected. 고쳐야 할 부분이 있다면 알려주세요. ㅇ 파파고 번역 ㅇ 좀 더 매끄러운 표현 ㅇ 틀린 표현 학원에서 스프링을 배울 때도, 책을 통해 공부를 할 때도 항상 5.0.7 버전을 사용했다. I have been used version 5.0.7 when I learned Spring in academy and I studied with book. 그렇게 쓰니까 써야하는 줄 알았고 스프링이 웹 개발을 하기에 편리하다고 하기에? 사용했다. Because t..
[Spring] 프로젝트 설정 (1) 기본 설정 프로젝트를 처음 새로 만들면 서버가 pivotal로 되어 있다. 내가 사용할 서버는 apache tomcat이므로 삭제하고 새로 추가해야 한다. ① Window - Preferences > Server - Runtime Environments에 보이는 Pivotal 서버 Remove ② Add > Apache Tomcat v8.5 선택 - Next ③ Tomcat installation directory 선택, JRE는 원래 Workbench default JRE로 선택되어 있는데 본인 버전에 맞도록 선택 (보통 Tomcat 위치 : C:\Program Files\Apache Software Foundation\Tomcat 8.5) ④ create a new server ⑤ Tomcat v8...
[Spring] 새 프로젝트 생성, 프로젝트 구조 살펴보기, 롬복 설치 프로젝트 생성 File - New - Spring Legacy Project 일반적인 Java 개발 : Spring, Spring 웹 개발 : Spring MVC Projcet 패키지명 : ___.____._____ (요새 마지막 단계는 controller로 하는 중) 프로젝트 최초 생성 시 필요한 코드&라이브러리 다운로드 (위치 : C:\Users\컴퓨터 이름\.m2 ) * 무선 인터넷 사용할 때 인터넷이 불안정하면 다운로드가 제대로 되지 않아 파일이 손상될 수 있음 이 때, 해당 위치 안의 repository 폴더 내 파일 삭제 후, 메이븐 업데이트 새로 진행하면 됨 프로젝트의 기본 구조 간단하게는 코드가 들어가는 폴더, 설정 파일, jsp 파일 경로로 나뉘는데, 색상으로 구분해보았다. 코드가 들어가..
StreamCorruptedException 경고: 세션 [9E8A47A57635882580BA400A37107B21]을(를) 위한 세션 속성 [SPRING_SECURITY_CONTEXT]을(를) 역직렬화할 수 없습니다. java.io.StreamCorruptedException: invalid type code: 00 at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.defaultReadObject(Unknown Source) at java.lang.Throwable.readObject(Unknown Source) at sun.ref..
NoSuchBeanDefinitionException * 20.05.27 수정 상황 1 WARN : org.springframework.web.context.support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterCha..
ClassNotFoundException java.lang.ClassNotFoundException: org.springframework.security.web.csrf.DefaultCsrfToken at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1360) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1182) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.catalina.util.Custo..

728x90
반응형