GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing threadbuilder.wordpress.com — Java – threadbuilder Category Archives: JavaJPA ManyToOne Lombok 문제Movie class @OneToMany(mappedBy=”content” ) private List contentReviews = new ArrayList(); Review class @ManyToOne @JoinColumn(name = “c_id”) private Movie content; 음.. 이문제로 3일간 삽질 왜 그런지 도무지 알수가 없었다.. 어떤 예제를 봐도 전부 동일한데 나만 왜 안되는 것일까?? 문제는 생각보다 … Continue reading → DBCP 설정쓸때마다 까먹는 dbcp설정.. ㅠ.ㅠ http://commons.apache.org/proper/commons-dbcp/configuration.html 6가지 옵션 기억하자. ( 특히 서비스 특성상 새벽시간 접속이 없는 서비스라면.. 더욱 ) validationQuery : testOnBorrow : 커넥션을 풀에서 꺼낼때 검사 default false testWhileIdle : Idle 상태의 커넥션 대상으로 테스트 실행 접속 아웃시 제거 timeBetweenEvictionRunsMillis … Continue reading → SSL Android 6.0 문제정확히 Android 6.0의 문제가 아니고 JDK버전에서 지원되는 Cipher문제이다. Android 6.0부터 openssl 라이브러리가 삭제되고 boring ssl로 변경되었다. 여러종류의 암호화 중에 세션키 암호화는 SSL Negotioation 과정에서 정해지게 되는데 .. 이때 JAVA 에서 DH(Diffie-Hellman) 알고리즘의 Cipher를 사용하게 될 경우, 768 bit로 사용되어지며, 이는 … Continue reading → Android Retrofit 사용법geo code 두개의 거리 구하기public static double Calc(double Lat1, double Long1, double Lat2, double Long2) { double dDistance = 0; double dLat1InRad = Lat1 * (Math.PI / 180.0); double dLong1InRad = Long1 * (Math.PI / 180.0); double dLat2InRad = Lat2 * (Math.PI / 180.0); … Continue reading → 생성자의 매개변수가 많을 때는 빌더(builder)를 고려하자1. 생성자와 Static 팩토리 메소드의 제약 매개변수가 많아질 경우 해당 클래스의 객체를 생성하려면 신축성 있게 처리하지 못한다. 2. 해결방법 가. 텔리스코핑 생성자 패턴 고전적인 방법으로 텔리스코핑 생성자(telescoping constructor) 패턴이 있다. 생성자를 오버로딩하여 사용하는 방법으로 코드로 표현해보면 아래와 같다. 위 클래스에서 … Continue reading → Java AES 256 에러JAVA의 기본 정책으로는 AES128 암호화 방식까지만 사용이 가능하므로 AES256 방식으로 암호화를 하게 되면 아래와 같은 Exceptioin이 발생합니다. java.security.InvalidKeyException: Illegal key size 이를 해결하기 위한 방법은 http://www.oracle.com/technetwork/java/javase/downloads/index.html 위링크에 가셔서 “Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7” 을 다운 … Continue reading → JVM GC 모니터링 방법jstat은 HotSpot JVM에 있는 모니터링 도구이다. jstat 이외에 HotSpot JVM 모니터링 도구로는 jps와 jstatd가 있다. Java 애플리케이션을 모니터링할 때에는 이 세 개의 도구를 모두 사용해야 할 경우도 있다. jstat은 GC 수행 정보를 보는 기능만 제공하지는 않는다. 클래스로더 수행 정보나 Just-in-Time … Continue reading → JVM GC G1 Tunning OptionsGarbage First (G1) Garbage Collection Options Option and Default Value Description -XX:+UseG1GC Use the Garbage First (G1) Collector -XX:MaxGCPauseMillis=n Sets a target for the maximum GC pause time. This is a soft goal, and the JVM will make its best … Continue reading → JNI 샘플Passing Strings from C to Java through a StringBuffer, Accessor Methods C code: Using JNI: Passing Strings from Java to C, with Localization The 1.0 old way was to use the call: javaString2CString(javaStr,cStr,sizeof(cStr)); Now we have two options: Use the … Continue reading →
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |