Maven 빌드시 에러 [WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:Please always use mockito-core instead of mockito-all (https://bugs.opendaylight.org/show_bug.cgi?id=7662)Found Banned Dependency: org.mockito:mockito-all:jar:1.10.19Use 'mvn dependency:tree' to locate the source of the banned dependencies.[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enfor.. 더보기 opendaylight hello 프로젝트 시작 하기 1 Eclipse IDE을 이용하여 opendaylight hello Maven Project을 생성하는 방법new -> Maven Project 선택Configure -> Add Remote Catalog Catalog 경로 입력Catalog File https://nexus.opendaylight.org/content/repositories/opendaylight.release/archetype-catalog.xml or https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/archetype-catalog.xmlDescription : opendaylight release필자는 Boron 버전으로 프로젝트를 생성 하였지만, 원.. 더보기 character to be escaped is missing File.separator 은 해당 파일시스템에서 사용되는 경로 구분자를 리턴 하게 되어 있습니다. 윈도우에서는 \(백슬러시)을 리턴 하므로 주의가 필요 합니다. Java 에서는 \ 문자는 이스케이프 문자 이므로 아래와 같이 사용시 에러가 발생 될 수 있습니다. String test = "\\";test.replaceAll("\\\\", File.separator); character to be escaped is missing 에러 발생 해결 방안은 Matcher.quoteReplacement(File.separator) 형식으로 사용하면 에러를 방지 할 수 있습니다. 더보기 싱글톤 클래스 생성 팁 1. LazyHolder public class Singleton { private Singleton() {} public static Singleton getInstance() { return LazyHolder.INSTANCE; } private static class LazyHolder { private static final Singleton INSTANCE = new Singleton(); } } 자세한 내용은 아래 출처에서 확인 하세요. [출처] https://medium.com/@joongwon/multi-thread-환경에서의-올바른-singleton-578d9511fd42 더보기 http <-> https 세션 공유 web.xml httpsFilter com.nc.rsd.web.util.https.HttpsFilter httpsFilter /* HttpsFilter 작성public class HttpsFilter implements Filter {public void doFilter(ServletRequest request, ServletResponse response,FilterChain chain) throws IOException, ServletException {HttpsRequestWrapper httpsRequest = new HttpsRequestWrapper((HttpServletRequest) request);httpsRequest.setResponse((HttpServletResponse) resp.. 더보기 이전 1 2 3 4 5 ··· 8 다음