반응형 백엔드159 64비트 응용 프로그램은 변경할 수 없습니다. Changes to 64-bit applications are not allowed. 디버깅중에 코드를 수정하고 계속 실행하고 싶은데 안된다고 한다. 해결 방법은 말그대로. 64비트 프로그램이면 안된다니까 32비트로 디버깅을 하면 된다. fillin.tistory.com/201 2020. 10. 8. JSON 문자열 List 타입 파싱할때 LinkedHashMap으로 변환되는 문제 이렇게 되는 이유는 JAVA의 제네릭이 컴파일까지만 유지되고 실행단계에서는 사라져버리기 때문이다. 이번 상황은 GET 요청 URL에 JSON 포맷으로 데이터가 들어온다. 자동 파싱이 안돼서 문자열로 받고 바꾸는 작업 아래 new TypeReference() {} 부분이 문제다. List도 Generic이기 때문에 List가 실행단계에서는 List가 돼버린다. (타입이 없다...) 그래서 자바는 어 이게 뭐지 하고 LinkedHashMap으로 만들어서 넣음. public void setFilter(String filter) throws Exception { this.filter = filter; this.setFilterList(this.parseJson(this.filter)); } private Lis.. 2020. 9. 26. 문자열 배열을 문자열로 변환할 때 구분자 처리 문자열 배열을 문자열로 변환할 때 사용하는 코드 블럭 Collectors.joining(구분자, prefix, suffix) 아래 예시는 List을 받아서 SQL IN 쿼리에 사용할 수 있는 모양으로 바꾼다. SQL에서는 StringBuilder sb = new StringBuilder(); sb.append("("); sb.append(array.stream().collect(Collectors.joining(",", "'", "'"))); sb.append(")"); return sb.toString(); 2020. 9. 26. ORA-01745: 호스트/바인드 변수명이 부적합합니다 sort와 filter 쿼리의 일반화 작업 중 ORDER BY #{sort.property} #{sort.direction} --> 수정 후 ORDER BY ${sort.property} ${sort.direction} 2020. 9. 26. 문자열에 붙어 사용되는 @기호의 의미 문제의 문장 Regex.Split(str, @"\,") 골뱅이는 백슬래시를 이스케이프 문으로 처리안하겠다. 문자열 그대로 쓰겠다는 의미. 여러줄로 나누고 싶을 때도 사용할 수 있다고 한다. 2020. 9. 4. [JAVA] String to Date, Date to String 형변환 https://nota.tistory.com/50 [JAVA] String to Date, Date to String 형변환 자바(JAVA) 형 변환(String과 Date) String to Date String from = "2013-04-08 10:10:10"; SimpleDateFormat transFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date to = transFormat.parse(from);.. nota.tistory.com new Date(String)으로 Date를 생성하면 Deprecated 됐다는 경고가 발생한다. 대신 이걸 쓰자. String to Date String from = "2013-04-08 10:10:10"; S.. 2020. 8. 6. 이전 1 ··· 9 10 11 12 13 14 15 ··· 27 다음 반응형