일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- IntelliJ
- Windows 10
- Mac
- xargs
- bash
- resource
- grep
- VirtualBox
- port
- maVen
- Eclipse
- netsh
- 네트워크
- import
- Source
- vscode
- plugin
- Quartz
- context
- tomcat
- GIT
- profile
- lsof
- ssh
- JavaScript
- find
- 줄바꿈 문자
- web.xml
- Windows
- 단축키
- Today
- Total
목록Dev/Java (163)
develog
// 현재 디렉토리// C:\Documents and Settings\Administrator\workspace\testApp 1. getAbsolutePath (., .. 을 계산하지 않고 그대로 출력)System.out.println(new File(".").getAbsolutePath());System.out.println(new File("..").getAbsolutePath()); // outputC:\Documents and Settings\Administrator\workspace\testApp\.C:\Documents and Settings\Administrator\workspace\testApp\.. 2. getCanonicalPath (., .. 을 계산한 경로를 출력)System.ou..
http://www.java2s.com/Open-Source/Java/Development/jacob-1.15/com/jacob/Catalogjacob.htm
try { // throw exception} catch (Exception e) { logger.error(e.getMessage(), e); throw new RuntimeException(e.getMessage());}
logger.error(e);-----------------------------------[2013-05-29 15:21:44] [ERROR] java.lang.RuntimeException: 에러! logger.error(e.getMessage());-----------------------------------[2013-05-29 15:22:10] [ERROR] 에러! logger.error(e, e);-----------------------------------[2013-05-29 15:22:35] [ERROR] java.lang.RuntimeException: 에러!java.lang.RuntimeException: 에러!at test.TestMaint2.cc(TestMaint2.java:51)..
PatternLayout patternLayout = new PatternLayout("[%d{yyyy-MM-dd HH:mm:ss}] [%-5p] %m%n"); ConsoleAppender consoleAppender = new ConsoleAppender(patternLayout); RollingFileAppender rollFileAppender = new RollingFileAppender(patternLayout, "log/rolling.log");rollFileAppender.setAppend(true);rollFileAppender.setMaxFileSize("2MB");rollFileAppender.setMaxBackupIndex(10); DailyRollingFileAppender dail..