본문 바로가기

it/programing

sweetalert2 SassError 에러 발생시 react에서 sweetalert2을 사용하려고 import 하니아래와 같이 에러가 발생 SassError: Invalid CSS after "...ch $size in map": expected expression (e.g. 1px, bold), was ".keys(variables.$co" node-sass을 삭제 npm uninstall node-sass sass 설치 npm install sass --save 더보기
자바 병렬 프로그래밍 참고 CountDownLatch, Semaphore, CyclicBarrier 설명 https://okky.kr/article/690736 더보기
opendaylight blueprint 적용(annotation) opendaylight 프로젝트에서 blueprint 사용시 xml 을 통해 설정하기 매번 귀찮을때가 있습니다. 그럴땐 어노테이션을 사용하면 Spring에서 개발하던 방법으로 손쉽게 개발이 가능 합니다. pom.xml 수정 dependency 수정 org.opendaylight.infrautils inject 1.1.2-Carbon javax.inject javax.inject true org.ops4j.pax.cdi pax-cdi-api true plugin 추가 org.apache.aries.blueprint blueprint-maven-plugin 1.6.0 blueprint-generate 패키지경로 어노테이션 적용 코드 @Singleton @OsgiServiceProvider public cla.. 더보기
karaf service 등록 링크 참조https://karaf.apache.org/manual/latest-3.0.x/wrapper 더보기
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.. 더보기
only coin 카드 통합 카드 크기의 단말기에 여러 카드를 입력해서 하나로 사용한다는 거 같은데요 아이디어랑 기술이 괜찮은듯 하네요 https://onlycoin.com/?referral=vtp50wh7 더보기