안녕하세요. DT혁신연구팀 서비스연구담당 김혜지입니다.
로컬 인텔리제이에서 서비스를 초기 실행하여, spring security 로그 레벨을 DEBUG 할때는 access denied 오류가 뜨고 INFO 레벨로 하면 아래와 같이 동일하게 특정리소스에 접근하는 것을 볼수있습니다.
예전에 어렴풋이 들었을때 캐모마일 health check하는게 있다 들었는데요, 감히 짐작합니다…
이거는 어떻게 끌수있을까요,.,?
[] 16:00:22 INFO [http-nio-8080-exec-1] o.s.w.s.DispatcherServlet – Completed initialization in 15 ms
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.j.c.JdbcTemplate – Executing prepared SQL query
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.j.c.JdbcTemplate – Executing prepared SQL statement [SELECT MESSAGE as message FROM CHMM_MESSAGE_SOURCE_INFO WHERE CODE=? and LANGUAGE_CODE=? and COUNTRY_CODE= ?]
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.j.d.DataSourceUtils – Fetching JDBC Connection from DataSource
[] 16:00:23 DEBUG [http-nio-8080-exec-1] j.sqlonly – com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
3. SELECT MESSAGE as message FROM CHMM_MESSAGE_SOURCE_INFO WHERE CODE=’AbstractAccessDecisionManager.accessDenied’
and LANGUAGE_CODE=’ko’ and COUNTRY_CODE= ‘KR’
[] 16:00:23 DEBUG [http-nio-8080-exec-1] n.l.c.c.m.DatabaseMessageSource – [error] not found(from db) : AbstractAccessDecisionManager.accessDenied,ko,KR,
[] 16:00:23 DEBUG [http-nio-8080-exec-1] n.l.c.c.m.IntegratingMessageSource – error : net.lotte.chamomile.commons.message.DatabaseMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-1] n.l.c.c.m.IntegratingMessageSource – error : org.springframework.context.support.ReloadableResourceBundleMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-1] n.l.c.c.m.IntegratingMessageSource – error : net.lotte.chamomile.commons.message.DatabaseMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.j.c.JdbcTemplate – Executing prepared SQL query
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.j.c.JdbcTemplate – Executing prepared SQL statement [SELECT MESSAGE as message FROM CHMM_MESSAGE_SOURCE_INFO WHERE CODE=? and LANGUAGE_CODE=? and COUNTRY_CODE= ?]
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.j.d.DataSourceUtils – Fetching JDBC Connection from DataSource
[] 16:00:23 DEBUG [http-nio-8080-exec-1] j.sqlonly – com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
3. SELECT MESSAGE as message FROM CHMM_MESSAGE_SOURCE_INFO WHERE CODE=’AbstractAccessDecisionManager.accessDenied’
and LANGUAGE_CODE=’ko’ and COUNTRY_CODE= ‘KR’
[] 16:00:23 DEBUG [http-nio-8080-exec-1] n.l.c.c.m.DatabaseMessageSource – [error] not found(from db) : AbstractAccessDecisionManager.accessDenied,ko,KR,
[] 16:00:23 DEBUG [http-nio-8080-exec-1] n.l.c.c.m.IntegratingMessageSource – error : net.lotte.chamomile.commons.message.DatabaseMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-1] n.l.c.c.m.IntegratingMessageSource – error : org.springframework.context.support.ReloadableResourceBundleMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-1] n.l.c.c.m.IntegratingMessageSource – error : org.springframework.context.support.ReloadableResourceBundleMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-1] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.j.c.JdbcTemplate – Executing prepared SQL query
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.j.c.JdbcTemplate – Executing prepared SQL statement [SELECT MESSAGE as message FROM CHMM_MESSAGE_SOURCE_INFO WHERE CODE=? and LANGUAGE_CODE=? and COUNTRY_CODE= ?]
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.j.d.DataSourceUtils – Fetching JDBC Connection from DataSource
[] 16:00:23 DEBUG [http-nio-8080-exec-2] j.sqlonly – com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
3. SELECT MESSAGE as message FROM CHMM_MESSAGE_SOURCE_INFO WHERE CODE=’AbstractAccessDecisionManager.accessDenied’
and LANGUAGE_CODE=’ko’ and COUNTRY_CODE= ‘KR’
[] 16:00:23 DEBUG [http-nio-8080-exec-2] n.l.c.c.m.DatabaseMessageSource – [error] not found(from db) : AbstractAccessDecisionManager.accessDenied,ko,KR,
[] 16:00:23 DEBUG [http-nio-8080-exec-2] n.l.c.c.m.IntegratingMessageSource – error : net.lotte.chamomile.commons.message.DatabaseMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-2] n.l.c.c.m.IntegratingMessageSource – error : org.springframework.context.support.ReloadableResourceBundleMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-2] n.l.c.c.m.IntegratingMessageSource – error : net.lotte.chamomile.commons.message.DatabaseMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.j.c.JdbcTemplate – Executing prepared SQL query
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.j.c.JdbcTemplate – Executing prepared SQL statement [SELECT MESSAGE as message FROM CHMM_MESSAGE_SOURCE_INFO WHERE CODE=? and LANGUAGE_CODE=? and COUNTRY_CODE= ?]
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.j.d.DataSourceUtils – Fetching JDBC Connection from DataSource
[] 16:00:23 DEBUG [http-nio-8080-exec-2] j.sqlonly – com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
3. SELECT MESSAGE as message FROM CHMM_MESSAGE_SOURCE_INFO WHERE CODE=’AbstractAccessDecisionManager.accessDenied’
and LANGUAGE_CODE=’ko’ and COUNTRY_CODE= ‘KR’
[] 16:00:23 DEBUG [http-nio-8080-exec-2] n.l.c.c.m.DatabaseMessageSource – [error] not found(from db) : AbstractAccessDecisionManager.accessDenied,ko,KR,
[] 16:00:23 DEBUG [http-nio-8080-exec-2] n.l.c.c.m.IntegratingMessageSource – error : net.lotte.chamomile.commons.message.DatabaseMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-2] n.l.c.c.m.IntegratingMessageSource – error : org.springframework.context.support.ReloadableResourceBundleMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-2] n.l.c.c.m.IntegratingMessageSource – error : org.springframework.context.support.ReloadableResourceBundleMessageSource / AbstractAccessDecisionManager.accessDenied / KR
[] 16:00:23 DEBUG [http-nio-8080-exec-2] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-3] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-3] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-3] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-3] o.s.s.w.h.S.SESSION_LOGGER – No session found by id: Caching result for getSession(false) for this HttpServletRequest.
[] 16:00:23 DEBUG [http-nio-8080-exec-3] o.s.j.c.JdbcTemplate – Executing prepared SQL query
[] 16:00:23 DEBUG [http-nio-8080-exec-3] o.s.j.c.JdbcTemplate – Executing prepared SQL statement [SELECT MESSAGE as message FROM CHMM_MESSAGE_SOURCE_INFO WHERE CODE=? and LANGUAGE_CODE=? and COUNTRY_CODE= ?]
[] 16:00:23 DEBUG [http-nio-8080-exec-3] o.s.j.d.DataSourceUtils – Fetching JDBC Connection from DataSource
[] 16:00:23 DEBUG [http-nio-8080-exec-3] j.sqlonly – com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
3. SELECT MESSAGE as message FROM CHMM_MESSAGE_SOURCE_INFO WHERE CODE=’AbstractAccessDecisionManager.accessDenied’
and LANGUAGE_CODE=’ko’ and COUNTRY_CODE= ‘KR’
안녕하세요 혜지님.
해당 로그는 캐모마일에서 기본으로 security 관련된 로그를 볼수 있도록 설정해둔 로그 값입니다.
혹시라도 로그를 보고 싶지 않으시다면 ../src/main/resources/log4j2.xml 파일의 security 로그 레벨을 DEBUG에서 OFF로 변경하시면 됩니다.
<Logger name="org.springframework.security" level="OFF" additivity="false"> <AppenderRef ref="maskDailyRollingFile" /> </Logger>