[Spring Security] IP 차단 및 허용 Xml 빈설정 /** * 특정 url에 대해 허용된 아이피만 접근하도록 설정 * 룰 기반인 hasRole 기반으로도 가능하나, 아이피 기반으로 url 접근을 거부하도록 한다. * 허용되지 않은 아이피로 url에 접근시 다시 인증 받도록 한다. * * WAS를 설정하지 않으면 request.getRemoteAddr() => 로컬기준 0:0:0:0:0:0:1 처럼 * ipv6 주소처럼 나타난다. * ide에서는 vm 옵션을 이용하여 WAS Arguments 값을 수정해주어야하며, * -Djava.net.preferIPv4Stack=true * 실제 운영시에도 해당 내용을 WAS에 넣어주어야한다 * 톰캣 WAS는 catalina 파일에 JAVA_OPTS 설정..
org.junit.platform.launcher.core.EngineDiscoveryOrchestrator lambda$logTestDescriptorExclusionReasons$7 INFO: 0 containers and 2 tests were Method or class mismatch 해당 문구는 큰문제는 아니지만 그래도 지우고 싶으면 해당 Build 설정을 바꾸면 해결된다 Intellij 설정에서 Settings -> Build, Execution, Deployment -> Build Tools -> Gradle 에서 Build and run using과 Run tests using의 속성을 Intellij IDEA로 해주시면 해결됩니다. 빌드할 때 JUnit으로 테스트가 진행 되어야 하는데 ..
spring boot 2.5.0 이상 버전에서 바뀐 내용으로 오류 Error creating bean with name 'dataSourceScriptDatabaseInitializer' defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #..
Spring Framework 개발환경 설정 1. JDK 설치 - http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html - JDK를 다운받아서 설치 - 설치 후 환경변수 설정 윈도우 : 시스템설정 - 환경 변수 설정 1) JAVA_HOME : C:\프로그램\JAVA폴더 2) PATH : %JAVA_HOME%\BIN 3) CLASSPATH : %JAVA_HOME%\LIB 2. ECLIPSE 또는 STS 설치 ECLIPSE - https://www.eclipse.org/downloads/download.php?file=/oomph/epp/oxygen/R2/eclipse-inst-win64.exe STS - htt..