년도 일수 체크 (윤달체크) //윤달 계산 function f_leapyear(yy) { if (yy % 4 == 0 && yy % 100 != 0 || yy % 400 == 0) return 1; else return 0; } // Check how many days there are on the inputted year and month // 년과 달을 입력하면, 한달에 몇일이 있는지 확인하는 함수입니다. function f_dayofmonth(yy, mm) { switch (mm) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: return 31; case 4: case 6: case 9: case 11: return 30; case 2: ..
구시스템 분석중에 jsp 경로를 찾기 쉽게하기위한 방법을 찾아보다가 없는듯하여 타일즈 관련 클래스를 직접 수정했다. org.apache.struts2.views.tiles.TilesResult.java public void doExecute(String location, ActionInvocation invocation) throws Exception { setLocation(location); ServletContext servletContext = ServletActionContext.getServletContext(); TilesContainer container = TilesAccess.getContainer(servletContext); HttpServletRequest request = Ser..
예전에 쓰던 코드인데 톰캣8에서 돌렸더니 아래와 같은 에러를 냈다. javax.el.ELException: Failed to parse the expression [${ item.new }] 이유는 톰캣7이후부터 new, class, static 같은 java키워드는 사용하지 못하도록 변경되었단다. 해결방법은 코드를 수정하거나 톰캣설정을 바꾸는방법이 있다. 1. 코드수정은 아래처럼 수정한다. ${ item['new'] } 2. 서버설정을 바꾸는 방법은 이클립스 연동한경우 Servers -> [프로젝트명] -> catalina.properties 파일의 맨 하단에 아래의 설정을 추가하고 재기동하면 된다. org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true
[root@hoonhee~]# vi .bashrc # .bashrc # User specific aliases and functions alias rm='rm -i'alias cp='cp -i'alias mv='mv -i'alias jboot='jeus -Uadministrator -P1234 &'alias jdown='jeusadmin uriel -Uadministrator -P1234 jeusexit'alias ja='jeusadmin uriel -Uadministrator -P1234'alias ws='cd /tmax/jeus6/webserver'alias jlog='cd /tmax/jeus6/logs' # Source global definitionsif [ -f /etc/bashrc ]; the..
예제1) 문자열 : 11111111.2222222.33333333.444444.55555555.666666666.777777.8888888.9999999.0000000 정규식 : ^[^\.]*\. replace 삭제 결과 : 2222222.33333333.444444.55555555.666666666.777777.8888888.9999999.0000000 예제2) 문자열 : 11111111;2222222;33333333;444444;55555555;666666666;777777;8888888;9999999;0000000 정규식 : ^[^;]*; replace 삭제 결과 : 2222222;33333333;444444;55555555;666666666;777777;8888888;9999999;0000000
mybatis의 연관관계 lazyloading을 사용할때 각 객체간의 부모 자식간의 데이터를 무한로딩하는 현상이 발생할때가 있다. 이 현상의 주 원인은 toString() 때문이다. 개발할때 vo객체에 toString을 재정의하여 사용하는경우가 있는데 이때 연관관계를 맺어놓은 객체까지 찍어버리면 이런현상이 일어난다. 만약 ToStringBuilder 를 이용해서 객체의 값들을 찍게 해놓았다면 지워주자. dwr에서도 마찬가지현상이 일어날수 있는데 이때는 한가지(부모나자식) 객체를 exclude 시켜버리면 된다.(아래글참조) --------------------------------------------------------------------------------------------------- dwr..
- Total
- Today
- Yesterday
- TMK
- shortkey
- SI
- 표준프레임워크 배치
- IntelliJ
- 2020.09
- CONDINGARRAY
- 코딩입문
- JBR-526
- 우테캠프로
- 이직
- 2020.1
- 아두이노
- CODINGARRAYKIT
- 표준프레임워크 배치 jar
- Arduino
- JBR-2732
- jeus8
- 12FactorApp
- 코딩어레이키트
- intellij느려짐
- 서비스회사
- code mining
- 아두이노스토리
- coding
- 코딩
- JsonPatch
- code vision
- 우테캠
- JsonMergePatch
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |