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...
로또 977회 1등 및 2등 당첨 지역 판매점 / 977회 로또 당첨번호 / 실수령 당첨금액 / 로또 명당
이번주 977회 로또 당첨번호 (추첨일 2021.08.21) 977회 로또 당첨번호입니다. 1등 로또 당첨번호는 2,9,10,14,22,44 (보너스 번호 16) 입니다 이번주 로또 1등 당첨자 수는 총 14명으로 자동...
[안드로이드 오류 수정하기] 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...
[.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()...
[HTML] 스크롤 자동 노출하기
높이가 160px를 넘어가면 자동으로 스크롤이 노출된다. < div class=”ajax_partial” data-url=”/Main/UserPartial” style=”height: 160px;overflow: auto;”> @Html.Partial(“LoadingCircle”) < /div>
구글 개발자 정책 위반으로 앱이 일시정지 되면, 개발자는 정책 위반을 곧바로 수정할 수 있는 기회 조차 사라졌다.
올해 1분기까지만 해도 앱이 정책 위반을 하게 되면 알림 메일이 옵니다. 그럼 개발자는 정책위반을 지키기 위해 앱을 수정하거나 앱 기본 등록정보를 수정 후 게시하면 몇...
[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” }) ...
[.net mvc]Base64인코딩한 데이터를 다시 byte[]로 인코딩하는 방법
Conversion from byte array to base64 byte[] fileData = Utility.ConverToBytes(file); ■ byte[]를 Base64인코딩 하는 방법string byteString = Convert.ToBase64String(fileData); ■ Base64인코딩한 데이터를 다시 byte[]로 인코딩하는 방법byte[] value = Convert.FromBase64String(rstArrayString);
[.net mvc] 파일명, 파일확장자만 가져오기
[HttpPost] public ActionResult SaveFiles(IEnumerable< HttpPostedFileBase > files){ if (files!= null) { foreach (var file in files) { Path.GetExtension(file.FileName); // 파일 확장자만 가져오기 (.pdf) ...
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...