본문 바로가기

java

(7)
Spring Boot servlet errorhandler 스프링 부트 에러 핸들러 ErrorController 구현하여 에러 매핑 매소드를 추가한다 에러 핸들러를 통해 파라미터 등 인자를 받을 수 있고 원하는 에러 페이지를 리턴 해주면 된다.
Spring boot Xss filter java config 참고 github.com/naver/lucy-xss-servlet-filter/blob/master/src/test/resources/lucy-xss-servlet-filter-rule.xml naver/lucy-xss-servlet-filter Contribute to naver/lucy-xss-servlet-filter development by creating an account on GitHub. github.com 스프링 부트에서 Xss 필터 자바클래스 구성 디펜던시 추가 및 상단 링크 lucy-xss-servlet-filter-rule.xml 파일을 resources 경로에 추가 FilterRegistrationBean에 XssEscapeServletFilter를 등록 XssPreventer...
Spring Boot Log4j2 java config 참고 www.baeldung.com/log4j2-programmatic-config Programmatic Configuration with Log4j 2 | Baeldung Learn how to programmatically configure log4j2, merge it with existing xml config, and other helpful tips. www.baeldung.com 스프링 부트 log4j2 자바 클래스 환경구성(이전글 기본 구성 참고) 보통 환경구성클래스의 경우 @Configuration 지정하여 리스너가 감지 할 수 있도록 빈으로 등록하는데 ConfigurationFactory 클래스를 상속받아 설정을 구성 할 경우 자동으로 감지 된다 Bulider로 appender를 생성..
Spring Boot Log4j2 기본설정 참고 https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html#core-properties Common Application properties docs.spring.io https://docs.spring.io/spring-boot/docs/2.2.0.RELEASE/reference/html/spring-boot-features.html#boot-features-logging Spring Boot Features If you need to call remote REST services from your application, you can use the Spring Framework..
Spring Boot DB Connection(HikariCp) Java Config 참고 https://docs.spring.io/spring-boot/docs/2.2.0.RELEASE/reference/html/howto.html#howto-data-access “How-to” Guides Spring Boot has no mandatory logging dependency, except for the Commons Logging API, which is typically provided by Spring Framework’s spring-jcl module. To use Logback, you need to include it and spring-jcl on the classpath. The simplest way to do that docs.spring.io https://docs..
Spring Boot Security Java Config 참고 https://spring.io/guides/gs/securing-web/ Securing a Web Application this guide is designed to get you productive as quickly as possible and using the latest Spring project releases and techniques as recommended by the Spring team spring.io https://docs.spring.io/spring-security/site/docs/5.2.0.RELEASE/reference/htmlsingle/#jc-form Spring Security Reference The authenticator is also responsib..
spring security 서버를 리붓 하지 않고 사용자 로그아웃 참고 https://docs.spring.io/spring-security/site/docs/4.2.12.RELEASE/apidocs/overview-summary.html Overview (Spring Security 4.2.12.RELEASE API) Authentication processing mechanisms, which respond to the submission of authentication credentials using various protocols (eg BASIC, CAS, form login etc). docs.spring.io https://stackoverflow.com/questions/44359792/log-out-user-by-admin-spring-security ..