일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- profile
- ssh
- Windows
- tomcat
- bash
- 단축키
- vscode
- lsof
- Mac
- find
- import
- Eclipse
- Quartz
- 줄바꿈 문자
- resource
- grep
- xargs
- JavaScript
- Windows 10
- maVen
- web.xml
- port
- netsh
- VirtualBox
- 네트워크
- plugin
- Source
- IntelliJ
- context
- Today
- Total
목록Dev/Java (163)
develog
// find tomcat base dirSystem.getProperty("catalina.base")
Articles: Tuning Java I/O Performance Stream Byte Stream Character Stream Standard Stream Standard Input Standard Output Standard Error InputStream ByteArrayInputStream FileInputStream FilterInputStream BufferedInputStream DataInputStream LineNumberInputStream PushbackInputStream ObjectInputStream PipedInputStream SequenceInputStream StringBufferInputStream OutputStream ByteArrayOutputStream Fil..
private String removeTag(String str) { String regex = "]*>"; return str.replaceAll(regex, "");}
import java.io.BufferedReader;import java.io.InputStreamReader;import java.net.URL;import java.net.URLConnection; import org.apache.commons.codec.binary.Base64; public class TestMain { public static void main(String[] args) throws Exception { BufferedReader br = null; try { String idpw = "username:password"; String encodedIdPw = new String(Base64.encodeBase64(idpw.getBytes())); URL url = new URL..
Properties props = System.getProperties();Iterator iter = props.keySet().iterator();while (iter.hasNext()) { String key = (String) iter.next(); String value = System.getProperty(key); System.out.println(key + "\t\t: " + value);}
public class TestMain { public static void main(String[] args) {System.out.println("START");System.out.println("----------------------------------------------");/* totalMemoryReturns the total amount of memory in the Java virtual machine.maxMemoryReturns the maximum amount of memory that the Java virtual machine will attempt to use.freeMemoryReturns the amount of free memory in the Java Virtual ..