일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- scrollView
- WebView
- MANTIS
- Redirect
- Android
- Apache Lucene
- 웹 서비스
- Eclipse
- 안드로이드
- jsp
- 자바스크립트
- C#
- 컬럼명
- Bootstrap
- 자바
- TextBox
- MS-SQL
- varags
- asp.net
- 웹뷰
- MSsql
- STS
- javascript
- Web Service
- decompiler
- Maven
- html
- 이클립스
- SpringSource Tool Suite
- Java
- Today
- Total
목록2015/01 (4)
bboks.net™
STS나 이클립스 사용시 print margin을 사용하면 코드의 길이를 적절하게 표현할 수 있음설정 방법은General - Editors - Text Editors - Show print margin 아래는 print margin 적용시 에디터의 모습
Fedora 20을 기준으로httpd.conf를 수정해서 URL에 IP 허용을 할 수 있음 Order mutual-failure Allow from IP 예) Order mutual-failure Allow from 192.0.0.1 여러 IP을 허용하고 싶다면 Allow from에 IP을 이어서 적으면 됨예) Allow from192.0.0.1 127.0.0.1 [참조] Apache Url 특정 Ip만 허용하기 Apache 서버 설정으로 특정 IP막기
자바 코드기반 구성 HttpComponentsClientHttpRequestFactory factory = new HttpComponentsClientHttpRequestFactory(); factory.setReadTimeout(2000); //milliseconds factory.setConnectionTimeout(2000); // milliseconds RestTemplate restTemplate = new RestTemplate(factory); XML 기반 구성 [출처] How to Set HTTP Request Timeouts With Spring RestTemplate
1. FileStream private static void copyFileUsingFileStreams(File source, File dest) throws IOException { InputStream input = null; OutputStream output = null; try { input = new FileInputStream(source); output = new FileOutputStream(dest); byte[] buf = new byte[1024]; int bytesRead; while ((bytesRead = input.read(buf)) > 0) { output.write(buf, 0, bytesRead); } } finally { input.close(); output.clo..