일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- grep
- import
- context
- Source
- tomcat
- Eclipse
- vscode
- Windows
- find
- plugin
- netsh
- VirtualBox
- ssh
- xargs
- IntelliJ
- Windows 10
- resource
- web.xml
- 줄바꿈 문자
- bash
- 단축키
- 네트워크
- Mac
- Quartz
- lsof
- JavaScript
- maVen
- profile
- GIT
- port
- Today
- Total
목록Dev/Java (163)
develog
eclipse.ini -Xms512m : Heap 메모리 최소 사이즈-Xmx512m : Heap 메모리 최대 사이즈XXPermSize : Permanent Generation 크기XXMaxPermSize : Permanent Generation 최대 크기XXNewSize : New Generation(새 영역) 크기XXMaxNewSize : New Generation(새 영역) 최대 크기 JVM Heap 메모리 영역- Permanent : JVM 클래스와 메소드를 위한 공간 (PermSize 설정)- New/Young : 새로 생성된 객체들을 위한 공간 (NewSize 설정)- Old : 만들어진지 오래된 객체들의 공간 (New 영역에서 이동해 온다) http://thositeom.tistory.com/..
public void callAnoymousPlsql(Connection conn) throws Exception { CallableStatement cstmt = null; String ln = "\n"; // \r\n ==> ERR // \n ==> OK // System.getProperty("line.separator") ==> \r\n try { StringBuffer sb = new StringBuffer(); sb.append("DECLARE" + ln); sb.append("BEGIN" + ln); sb.append("INSERT INTO AATEST (SEQ, TITLE) VALUES (999, 999);" + ln); sb.append("COMMIT;" + ln); sb.append("..
jar tomcat-dbcp.jar beans.xml soruceApplicationContext context = new ClassPathXmlApplicationContext("classpath:beans.xml");DataSource ds = (DataSource) context.getBean("dataSource");Connection conn = ds.getConnection();System.out.println(conn);conn.close();
sourceimport java.nio.ByteBuffer;import java.nio.ByteOrder; public class TestMain {public static void main(String[] args) throws Exception {int n = 264;int r;byte[] bytes;System.out.println(n);// ByteOrder.BIG_ENDIAN: 상위 바이트부터 왼쪽에 저장 (Default)// ByteOrder.LITTLE_ENDIAN: 하위 바이트부터 왼쪽에 저장bytes = intToByte(n, ByteOrder.BIG_ENDIAN);print(bytes);r = byteToInt(bytes, ByteOrder.BIG_ENDIAN);System.out.pr..
& : 두 비트가 같으면 1, 다르면 0| : 두 비트중 하나라도 1이면 1, 아니면 0^ : 두 비트가 다르면 1, 같으면 0~ : 1 이면 0, 0 이면 1> : 오른쪽으로 이동후 왼쪽 비트를 왼쪽 첫 비트와 같은 비트로 채움 (0이면 0으로 채우고 1이면 1로 채움)>>> : 오른쪽으로 이동후 왼쪽 비트를 0 으로 채움 sourcepublic class TestMain {public static void main(String[] args) throws Exception {System.out.println(" 25 : " + lpad8(Integer.toBinaryString(0xff & 25)));System.out.println(" 255 : " + lpad8(Integer.toBinaryStri..
byte[] bytes = "한글".getBytes("EUC-KR");for (int i = 0; i < bytes.length; i++) { byte b = bytes[i]; System.out.print(b); System.out.print("\t"); System.out.println(Integer.toBinaryString(0xFF & b));} System.out.println();System.out.println(new String(new byte[] {-57, -47, -79, -37}, "EUC-KR"));