Spring Securty 5.7.x 부터 deprecated 된 WebSecurityConfigureAdapter 의 대체 방법 및 람다식 적용, ignore 적용에 관련된 좋은 내용이 있어서 링크함. https://velog.io/@csh0034/Spring-Security-Config-Refactoring [Spring Security] Config Refactoring WebSecurityConfigurerAdapter Deprecated, Lambda DSL 적용, Resource Filter Chain 설정 velog.io authorizeRequests() 를 대체하는 authorizeHttpRequests() 에 대한 내용 https://docs.spring.io/spring-securit..
egloos.zum.com/iris2380/v/588783 JEUS7에서만 발생하는 Validator error에 대한 해결책. 현재 프로젝트에서 Validator는 Hibernate validator를 사용한다. hibernate-validator-5.2.1.Final.jar와 validation-api-1.1.0.Final.jar를 이용해서 어노테이션 기반으로 서버 validation 처리를 하고 있다. 로컬환경 (JDK 1.7, egloos.zum.com
런타임에 로깅을 분리하거나 걸러내는 기능이 필요할 때 유요함. 참고: https://opennote46.tistory.com/170 Logback - SiftingAppender 이름에서 암시하듯이 SiftingAppender는 런타임시에 주어진 어트리뷰터에 따라 로깅을 분리하거나 걸러낼 수 있다. 예를 들어 SiftingAppender는 유저 세션에 따라 로깅 이벤트를 분리할 수 있다. 이러한 opennote46.tistory.com http://www.talkdev.net/logback-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0/ logback 사용하기(1) | 개발자들의 개발 토크! www.talkdev.net http://logback.qos.ch/apidocs/ch/qos..
핵심은 ServletFilter를 이용하여 ContentCachingRequestWrapper와 ContentCachingResponseWrapper 를 사용하고, HandlerInterceptorAdapter를 구현하여 로깅처리하는 것. httpServletRequest의 getInputStream()은 한번 밖에 사용 못하므로, ContentCachingRequestWrapper를 이용해야 함. 그렇지 않으면, (java.lang.IllegalStateException: getReader() has already been called for this request) 에러가 남. 참고사이트. https://dlsrb6342.github.io/2019/07/02/Spring-Content-Logging/..
조직 트리 데이타 조회 예시 WITH CTE_TABLE(DEPT_CD, DEPT_NM, UP_DEPT_CD, LVL, SORT, DEPT_FULL_NM) AS ( SELECT DEPT_CD , DEPT_NM , UP_DEPT_CD , 1 AS LVL , CONVERT (NVARCHAR(200), DEPT_CD) AS SORT , CONVERT (NVARCHAR(200), DEPT_NM) AS DEPT_FULL_NM FROM EC_DEPT WHERE UP_DEPT_CD = 'ROOT' --최상위부서 UNION ALL SELECT A.DEPT_CD , A.DEPT_NM , A.UP_DEPT_CD , cte.LVL + 1 AS LVL , CONVERT (NVARCHAR(200), CONVERT(NVARCHAR..
참고 : https://java.ihoney.pe.kr/472 참고 : https://eblo.tistory.com/56 # application.properties 값 조회 @ 뒤에 빈(Bean) 이름을 사용하면 그 빈에 접근할 수 있다. 프로파일 환경에 따라 표시를 하려면 This is the production profile 또는 This is the production profile # 시스템 환경변수 조회 ${@systemProperties['property.key']} # 메세지 조회 # 세션정보 조회 # 파라미터 조회 # PathVariable 조회 * Spring 컨트롤러에 Request Mapping에 선언되어 있고 @PathVariable이 있어야만 정보를 가져올 수 있다.
# collate 변경 -- SINGLE USER MODE 변경 ALTER DATABASE MyTestDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE; -- 작업 진행 ALTER DATABASE MyOptionsTest COLLATE korean_wansung_ci_as; ALTER TABLE MyTestTable ALTER COLUMN MyColumnName varchar(50) COLLATE korean_wansung_ci_as; -- MULTI USER MODE 복귀 (기본값) ALTER DATABASE MyTestDB SET MULTI_USER ;
- Total
- Today
- Yesterday