본문 바로가기

728x90
반응형

분류 전체보기

(111)
[Spring Security] 2. 커스텀 로그인 페이지 설정 설정 security-context.xml - security:form-login에 login-page 설정 추가 직접 특정 URI를 지정하는데, 이 때 반드시 GET 방식으로 접근하는 URI여야 한다. src/main/java/(__.__.controller 패키지)/MemberLoginController.java package com.spring.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import lombok.extern.log4j.Log4j; @Controll..
[Spring Security] 1. Spring Web Security 개념과 설정 Spring Web Security란? 일반적인 공격에 대한 인증, 권한 부여 및 보호를 제공하는 프레임 워크 명령형 애플리케이션과 반응형 애플리케이션을 모두 지원하는 이 클래스는 스프링 기반 애플리케이션을 보호하기 위한 사실상의 표준이라고 시큐리티 레퍼런스 문서에서 설명하고 있다. 간단히 말해 스프링 프레임워크의 하위 프로젝트로, 웹 보안과 관련된 프레임워크라고 할 수 있음 → 보안 관련 다양한 옵션들을 제공해 편리하게 사용 가능 설정 pom.xml org.springframework.security spring-security-web 5.2.5.RELEASE org.springframework.security spring-security-config 5.2.5.RELEASE org.springfram..
[Spring Framework] REST 방식의 개념과 설정 REST(Representational State Transfer)란? 하나의 *URI는 하나의 고유한 리소스(Resource)를 대표하도록 설계된다는 개념과 전송방식을 결합해 원하는 작업을 지정하는 것 (ex. '/board/1'은 게시물 중 1번이라는 고유한 의미를 가지도록 설계. 이에 대한 처리는 GET, POST 방식과 같이 추가적인 정보를 통해 결정 → URI + GET/POST/PUT/DELETE ... 으로 구성된다고 볼 수 있음) * URI(Uniform Resource Identifier) : URL보다 현실적이고 구체적인 의미로, 자원의 식별자라는 의미로 사용. └ 데이터베이스의 PK와 같은 의미 URL(Uniform Resource Locator) : URI의 하위 개념으로, URI와..
[Tomcat] Port 8009 required by Tomcat v8.5 Server at localhost is already in use. Port 8009 required by Tomcat v8.5 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s). 오류 : Tomcat server 구동 시, 위와 같은 에러 발생 원인 : Tomcat이 사용하는 기본 포트(8005, 8080, 8009 중 지금은 8009)를 이미 사용중이기 때문이다. 해결 - 쓰고 있는 포트 번호 바꾸기 - 포트를 사용하고..
[Spring Framework] MyBatis 연동, log4jdbc-log4j2 설정 MyBatis 연동 ① pom.xml - 추가 org.springframework spring-tx ${org.springframework-version} org.springframework spring-jdbc ${org.springframework-version} org.mybatis mybatis 3.4.6 org.mybatis mybatis-spring 1.3.2 spring-jdbc, spring-tx : 스프링에서 데이터베이스와 트랙잭션 처리와 관련 (MyBatis와 무관해 보여도 추가하지 않으면 에러 발생) mybatis, mybatis-spring : MyBatis와 스프링 연동용 라이브러리 ② root-context.xml - 추가 MyBatis에서 가장 핵심적인 객체들 - SQLSess..
[Spring Framework] Overview (1) This post was written to study English. 이 포스팅은 영어 공부를 위해 작성되었습니다. Please tell me if there is anything that needs to be corrected. 고쳐야 할 부분이 있다면 알려주세요. ㅇ 파파고 번역 ㅇ 좀 더 매끄러운 표현 ㅇ 틀린 표현 https://docs.spring.io/spring/docs/current/spring-framework-reference/overview.html#overview Spring Framework Overview Spring makes it easy to create Java enterprise applications. It provides everything you need to e..
[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..

728x90
반응형