일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- GIT
- 줄바꿈 문자
- Source
- 단축키
- vscode
- context
- tomcat
- resource
- bash
- plugin
- maVen
- 네트워크
- Quartz
- import
- lsof
- Eclipse
- web.xml
- grep
- profile
- Windows
- Mac
- ssh
- netsh
- port
- find
- JavaScript
- IntelliJ
- VirtualBox
- Windows 10
- xargs
- Today
- Total
목록Dev/Java (163)
develog
public void sendGet() throws Exception { System.out.println(">> sendGet()"); String requestURL = "http://testdomain.com/test.jsp?enc_id=AA&enc_pw=BB"; URL url = new URL(requestURL); URLConnection urlConn = url.openConnection(); urlConn.setUseCaches(false); urlConn.setDoInput(true); urlConn.setDoOutput(false); BufferedReader br = new BufferedReader(new InputStreamReader(urlConn.getInputStream()))..
REST Tutorialhttp://rest.elkstein.org/2008/02/using-rest-in-java.html
출처 : http://javacan.tistory.com 자바로 구현하는 Web-to-web 프로그래밍, Part 1http://javacan.tistory.com/entry/35 자바로 구현하는 Web-to-web 프로그래밍, Part 2http://javacan.tistory.com/entry/42 multipart/form-data 타입을 이용한 파일 전송지원 클래스 작성http://javacan.tistory.com/entry/65
http://tutorials.jenkov.com/java-concurrency/synchronized.html // instance methods (one thread per instance)public synchronized void add(int value) {this.count += value;} // code blocks inside instance methodspublic void add(int value) {synchronized (this) {this.count += value;}} // static methods (one thread per class)public static synchronized void add(int value) {count += value;} // code bloc..
commons-dbcp-1.4.jar commons-pool-1.6.jar fscontext-4.4.jar ojdbc14.jar import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.Reference; import javax.naming.StringRefAddr; import javax.sql.DataSource; public class TestJndi { public static void main(String[] args) { Logger.info..
import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet; import javax.sql.DataSource; import org.apache.commons.dbcp.BasicDataSource; public class TestDbcp { public static void main(String[] args) {Logger.info("START");Logger.info("------------------------------------------------");Connection conn = null;PreparedStatement pstmt = null;ResultSet rs = null;String sql..