자바 쓰레드는 Runnable, Callable을 쓸 수 있다. 두개의 차이점이 궁금할 텐데 같이 한번 살펴보자. 간단한 예제로 빠르게 살펴봅니다. class ThreadRunner implements Runnable{ public void run() { System.out.println("Runnable"); } } class ThreadCaller implements Callable{ public String call() throws Exception{ return "Callable"; } } public class Test{ public static void main(String[] args) throws InturruptedException, ExecutionException{ ExecutorSe..
자바 json http 호출 하고 응답 받는 아주 간단한 소스를 소개합니다. json으로 요청 파라미터를 구성해서 요청하고 json으로 응답을 받습니다. public class Https{ final static String clientId="adf"; final static String clientSecret="dfas"; final static String id="aa"; final static String password="bb"; public static void main(String[] args) throws Exception{ Https https=new Https(); String targetUrl="http://aa.com"; URL url=new URL(targetUrl); HttpURL..
자바 smtp로 메일 보내는 아주 간단한 소스를 소개해 보겠다. 아주 간단하게 메일 보내면 되는데 구글링 해보면 심오하게 나와서.. 아주 간단한 버전으로 정리해봤습니다. 아주 간단하니 심오한것은 구글링 해보면 되겠습니다. 아주 간단한 소스며 실제로 메일 가는것 까지 확인했습니다. 그럼 시작해 보겠습니다. public class SendMailTestOne{ public static void main(String[] args) throws UnsupportedEncodingException, MessagingException{ String host="1.1.1.1"; int port=25; String sender="no-reply"; String mailDomain="@aa.com"; String rcv..
- Total
- Today
- Yesterday
- EC
- C언어
- Python
- C
- 플러터
- 프로씨
- KG
- 포인터
- XE
- ocajp
- proc
- 라이믹스
- 자바 smtp
- 이클립스
- ocjap
- php
- xe addon
- 문자열
- xe애드온
- 자바
- 스크래핑
- webix
- MySQL
- 오라클
- esql
- 파싱
- JDBC
- 파이썬
- 인포믹스
- XE3
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |

