정보의 공유 사회

Java

java.lang.IllegalArgumentException: Invalid ‘log4jConfigLocation’ parameter: class path resource [log4j.properties] cannot be resolved to URL because it does not exist

tomcat 서버 실행하면서 발생된 오류다.     심각: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter: class path...
Android

[안드로이드 오류 수정하기] org.xmlpull.v1.XmlPullParserException – Binary XML file line #1: invalid drawable tag vector

Caused by android.content.res.Resources$NotFoundException: File res/drawable/baseline_swipe_24.xml from drawable resource ID 안드로이드 앱에 기능을 추가하면서 아이콘을 하나 추가했는데, 하필 안드로이드 4.4.4 버전에서 오류가 발생되었다. 아직도 안드로이드 4...
C#

[.net mvc]Grid 페이지 이동 후 이전페이지로 돌아왔을 때 Grid 필터값 유지하는 방법

    @(Html.Kendo().Grid< Model.View.DetailModel >()    .Name("GridListBRB")    .Columns(columns =>    {          columns.Bound(c => c.IsChkYn).ClientTemplate("< input type='checkbox' #= IsChkYn ? checked='checked':'' # class='chkbx' />")                                     .Width("1%").Title("< input type='checkbox' id='checkAll' onclick='fnCheckAll(this)'/>").Sortable(false).Filterable(false);          columns.Bound(p => p.CodeIdx).Hidden(true);          columns.Bound(p => p.RowNum).Title("No").Width("2%").Sortable(false);          columns.Bound(p => p.FileName).Title("파일명").Width("30%").HtmlAttributes(new { style = "text-align:left;" }).Sortable(false).ClientTemplate(@Html.ActionLink("#=FileName#", "DetailPage", new { CodeIdx = "#=CodeIdx#" }).ToHtmlString());          columns.Bound(p => p.RegName).Title("작성자").Width("10%").Sortable(false);          columns.Bound(p => p.LastUpdateDate).Title("등록일").Width("10%").Sortable(false);   }) .Pageable(pageable => pageable.ButtonCount(10)) .Selectable(selectable => selectable.Mode(GridSelectionMode.Single)) .DataSource(ds => ds.Ajax()...
Front-End

[HTML] Radio버튼 체크값 가져오기

< ul>                      < li style=”float:left; width:130%;”>        < label class=”subject3″>구분         @Html.RadioButton(“DisplayFlag”, 1, new { @class = “radio”, @id = “radio1”, @checked = “checked” })        < label class=”normal” for=”radio1″>영어< /label>         @Html.RadioButton(“DisplayFlag”, 0, new { @class = “radio”, @id = “radio2” })      ...
Java

HttpPostedFileBase를 바이트(Bytes[]) 로 변환

BinaryReader 클래스를 사용하여 쉽게 변환이 가능하다. public static byte[] ConverToBytes(HttpPostedFileBase file) {             //방법 1             var length = file.InputStream.Length;             byte[] arrayData = null;             using (var binaryReader = new BinaryReader(file.InputStream))             {                 arrayData = binaryReader.ReadBytes(file.ContentLength);             }             return...
error: Content is protected !!