본문 바로가기

IT개발113

[MyBatis] insert 구문에서 session.commit() 적용 session.commit() 적용 전 : sqlSession created : Openning JDBC Connection : Checked out connection 31516585 from pool. : Setting autocommit to false on JDBC Connection [com.mysql.jdbc.JDBC4Connection@1e0e7a9] : ooo Using Connection [com.mysql.jdbc.JDBC4Connection@1e0e7a9] : ==> Preparing: INSERT INTO SDK_SMS_SEND(USER_ID, SUBJECT, SMS_MSG, NOW_DATE, SEND_DATE, CALLBACK, DEST_COUNT, DEST_INFO, RESERV.. 2014. 5. 8.
[Maven] How to use War Build Goals I'm get it on apach main website. http://maven.apache.org/maven-1.x/plugins/war/goals.html this is how to make war build. and make goals. GoalDescriptionwarBuild a war file. This goal simply executes the war:war goalwar:initInitialize the file system and attain any necessary goalswar:warBuild a war file. This goal simply package the directory created by war:webapp goal. Additional custome conten.. 2014. 5. 7.
[MyBatis] 반복되는 쿼리 묶기 Sql, include 태그 같은 쿼리를 다른 쿼리에서 일부분 사용한다거나 그렇게 반복이 될 때 다음과 같이 사용하면 좋다 ......... SELECT * FROM TABLE1 WHERE name = #{value} 2014. 5. 7.
[wpf] 클립보드에 string data를 저장하자 WPF로 Clipboard 를 사용하여 복사/붙여넣기를 하는 것은 생각보다 매우 간단하다. System.Windows.Clipboard 클래스 를 사용한다. 1) 복사하기 :Clipboard.SetText (string text) , Clipboard.SetImage (BitmapSource image) 함수 사용( 이외에도 SetAudio, SetData, SetDataObject 함수도 존재함) BitmapImage img = new BitmapImage();Clipboard.SetImage(img); 2) 붙여넣기 :Clipboard.GetText(), Clipboard.GetImage(), Clipboard.GetData(), Clipboard.GetDataObject() 등의 함수 사용 Bitm.. 2014. 5. 2.
[Jsp] JSTL이 제공하는 주요 태그를 표로 정리해보자 JSP 코드를 줄여주는 기술이죠 JSTL 을 사용하여 깔끔하게 줄여봅시다 태그기능 태그 예제prefix core 일반 목적의 액션 out set remove catch c 조건 액션 if choose when otherwise true이므로 수행한다. 나이는 ${param.age }세 입니다. 'Kim'이 아니고 age가 20이 아닙니다. 반복 액션 forEach forTokens forEach 예제 URL 액션 import redirect url param xml 코어 out parse set x 흐름 제어 choose when otherwise forEach if Transformation transform param i18n 로케일 setLocale requestEncoding fmt 메시지 포매팅.. 2014. 4. 30.
[c#] c#에서 내 컴퓨터 IP주소를 받아오는 함수 만들기 private static string getIP(){ Regex regex = new Regex(@"^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$"); foreach (System.Net.IPAddress ip in System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName()).AddressList) { if (regex.IsMatch(ip.ToString())) { return ip.ToString(); } } return null;} 2014. 4. 28.