일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- bash
- GIT
- maVen
- 네트워크
- VirtualBox
- Quartz
- JavaScript
- Mac
- Windows 10
- 단축키
- context
- web.xml
- netsh
- ssh
- tomcat
- import
- IntelliJ
- xargs
- resource
- vscode
- port
- plugin
- 줄바꿈 문자
- profile
- lsof
- Eclipse
- find
- Source
- Windows
- Today
- Total
목록Dev/Java (163)
develog
public class Service { private Dao dao;public void setDao(Dao dao) {this.dao = dao;}private void template(IService service, Map param) {Connection conn = null;try {conn = ConnectionManager.getConnection();service.invoke(conn, param);} catch (Exception e) {e.printStackTrace();} finally {ConnectionManager.closeConnection(conn);}} public void insertUser(String userSeq) {Map param = new HashMap();pa..
import java.util.concurrent.Future; import com.ning.http.client.AsyncHttpClient;import com.ning.http.client.AsyncHttpClientConfig;import com.ning.http.client.Response; public String send(String url) { try { AsyncHttpClientConfig config = new AsyncHttpClientConfig.Builder().setRequestTimeoutInMs(1 * 1000).build(); AsyncHttpClient async = new AsyncHttpClient(config); Future future = async.prepareG..
private void replace(StringBuilder sb, String strFrom, String strTo) { if (sb == null) return; if (strFrom == null) return; if (strTo == null) return; while (sb.indexOf(strFrom) > -1) { int idxStart = sb.indexOf(strFrom); sb.replace(idxStart, idxStart + strFrom.length(), strTo); }}
http://mvnrepository.com/artifact/com.github.springtestdbunit/spring-test-dbunit/1.0.0