[Java, Spring] 스프링 시큐리티 자바클래스 설정

이대엽·2022년 10월 15일

개요

인텔리제이에서 해본 스프링 시큐리티 설정을 이클립스에서 따라해 보는것을 문서화 하였습니다.

세팅환경

개발도구 : STS 4
DB : Oracle 11g ex (이렇게 쓰는게 맞나요?)
https://www.oracle.com/database/technologies/xe-prior-release-downloads.html

sqldeveloper
https://www.oracle.com/database/sqldeveloper/technologies/download/

name : 상관없음
user : sys as sysdba
password : oracle 11g xe 설치 할 때 적었던 비밀번호

CREATE USER LEEDAEYEOB IDENTIFIED BY LEEDAEYEOB;
GRANT ALL PRIVILEGES TO LEEDAEYEOB WITH ADMIN OPTION;

이클립스 에서 레거시프로젝트 만들때 pom.xml 변경할 부분
https://webcache.googleusercontent.com/search?q=cache:zuTiyy-oyUQJ:https://kimvampa.tistory.com/158&cd=10&hl=ko&ct=clnk&gl=kr

브라우저에서 한글 깨짐 설정

web.xml 에 필터 추가
출처 : https://webcache.googleusercontent.com/search?q=cache:aZxeEMizbHUJ:https://homesi.tistory.com/125&cd=1&hl=ko&ct=clnk&gl=kr

	<!-- 한글설정 -->

	<filter>
		<filter-name>encodingFilter</filter-name>
		<filter-class>
			org.springframework.web.filter.CharacterEncodingFilter
		</filter-class>
		
		<init-param>
			<param-name>encoding</param-name>
			<param-value>UTF-8</param-value>
		</init-param>
		
		<init-param>
			<param-name>forceEncoding</param-name>
			<param-value>true</param-value>
		</init-param>
	</filter>

	<filter-mapping>
		<filter-name>encodingFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

	<!-- 한글설정 END -->

콘솔에서 한글 깨짐 설정
https://velog.io/@seongolee/eclipse-tomcat%EC%8B%A4%ED%96%89-console-%ED%95%9C%EA%B8%80%EA%B9%A8%EC%A7%90

Run Configuration - 톰캣 에서 인코딩을 Other ... MS949로 변경.

log4j jar 설정

https://webcache.googleusercontent.com/search?q=cache:w9Y9aU08kV4J:https://tlatmsrud.tistory.com/31&cd=4&hl=ko&ct=clnk&gl=kr

그만해 진짜

미완성

profile
은갈치쉐이크

0개의 댓글