개발중632 Java - String 날짜형 Type 검사 Java - String Date 형 Type 검사 아래 네가지 형식이 아니라면 "" 빈 값을 반환한다. "yyyy-mm-dd", "yyyy.mm.dd", "yyyymmdd", "yyyy/mm/dd" package com.rsn.POMS; import java.text.SimpleDateFormat; import java.util.Date; import java.text.ParseException; public class test{ public static boolean validateJavaDate( SimpleDateFormat dateTest, String strDate) { if (strDate.trim().equals("")) { return false; } else { dateTest.setL.. 개발중/Java 2021. 5. 17. LOMBOK - NoArgsConstructor/AllArgsConstructor 사용 NoArgsConstructor 다영선배가 Lombok 을 쓸 때 좋은 방법을 가르쳐 줬다! 기존 🤨 보통 생성자는 이렇게 쓰는데 매번 번거로운 작업이 아닐 수 없다. CategoryBasicVo vo = new CategoryBasicVo(); vo.setCategory_name(categoryName); vo.setCategory_type(categoryType); vo.setCategory_name_sub(categoryNameSub); vo.setCategory_sub_use(categorySubUse); vo.setCategory_sort_num(categorySortNum); vo.setCategory_use(categoryUse); vo.setCategory_public(categoryPub.. 개발중/Java 2021. 5. 14. To install it, you can run: npm install --save @/utils/saveId.js 에러 오랜만에 vue 문서를 실행시키니깐 에러가 나온다. * @/utils/saveId.js in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/login/index.vue?vue&type=script&lang=js& To install it, you can run: npm install --save @/utils/saveId.js @/utils/saveId.js npm install 을 요구 하는건 알겠다. 근.. 개발중/Troubleshooting 2021. 5. 14. @ApiParam NULL 해결 / Required String parameter '' is not present ApiParam 으로 4개의 데이터를 전달 받는다. 내가 원하는 흐름은 필수 1개의 데이터는 reqired 는 true 이고 필수 아님 3개의 데이터는 reqired 는 false 이다 public void updateCategory( @ApiParam( name = "NAME", type = "String", value = "이름", example = "SOOBIN", required = true ) @RequestParam("NAME") String NAME, @ApiParam( name = "AGE", type = "String", value = "나이", example = "25", required = false ) @RequestParam("AGE") String AGE, @ApiParam( n.. 개발중/Troubleshooting 2021. 5. 14. 액셀 / 액셀 파일 한글 깨져요. 액셀 파일 한글 깨져요. String fileName = "한글테스트.xlsx"; fileName = URLEncoder.encode(fileName, "UTF-8"); response.setCharacterEncoding("UTF-8"); response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\";"); 시도 1 String fileName = "한글테스트.xlsx"; fileName = new String(fileName.getBytes("utf-8"),"8859_1") + ".xls"; fileName = URLEncoder.encode(fileName, "UTF-8"); response.setCharact.. 개발중/Java 2021. 5. 13. 액셀 다운로드 - '~~.xlsx' 의 내용에 문제가 있습니다 난 아래 처럼 구현 했는데 더보기 package com.rsn.POMS.api.lucy.action.service.excelComponent; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import java.util.Map; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http... 개발중/Java 2021. 5. 13. lombok / getter setter 대소문자 호환 오류 내가 테스트 할 때는 getter setter 를 써서 테스트 했는데 테스트가 잘되서 lombok 으로 변경한 후에 커밋을 했다. 근데 lombok 으로 바꾸고 테스트를 하지 못한 실수 때문에 역시 에러가 발생,, 😨 내가 변수을 아래 표기법으로 만들었는데 private int sSpanMng; private int sAdvancedSearch; private int sTopicSearch; 생성자는 이렇게 public int getsSpanMng() { return sSpanMng; } public void setsSpanMng(int sSpanMng) { this.sSpanMng = sSpanMng; } public int getsAdvancedSearch() { return sAdvancedSear.. 개발중/Java 2021. 5. 13. 액셀 / AbstractXlsxView - setContentType 액셀 구현할 때 설정을 이렇게 세 개 했는데, response.setCharacterEncoding("UTF-8"); response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\";"); AbstractXlsxView 를 설정 받았다면 setContentType 을 설정해줄 필요가 없다. response.setCharacterEncoding("UTF-8"); response.setHeader("Content-Disposition", "attachmen.. 개발중/Java 2021. 5. 13. MY SQL 테이블 복사 / 데이터 복사 MY SQL 에서 테이블 데이터를 함부로 건들이면 안되는 경우가 있다. 그럴 경우에는 Second Table 을 생성해서 관리하는데 CEATE 기존 테이블 구조를 그대로 복사한다 CREATE TABLE BBB like AAA INSERT 기존 테이블 데이터를 그대로 복사한다 방법 1 INSERT INTO AAA SELECT * FROM BBB; 방법 2 INSERT INTO AA ( A1 , A2) SELECT , A1 , A2 FROM BB; 개발중/MYSQL 2021. 5. 12. Cannot find module 'core-js/package.json' 에러 해결 원래 잘 되던 프로젝트 인데 오랜만에 하려니까 npn run dev 을 하니까 이런 에러가 발생 방법 1 실패 npm add core-js 혹시나 시도 성공 npm i core-js 개발중/Troubleshooting 2021. 5. 12. org.springframework.beans.factory.BeanDefinitionStoreException: 에러 해결 org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [ ~.~.~ ]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'actionLog.keywordStatus' for bean class [ ~.~.~ ] nested exception 코딩할 때는 아무문제 없더가 실행.. 개발중/Troubleshooting 2021. 5. 12. Some of selected resources were not committed. 에러 해결하기🏇🏇 SVN ERROR 🏇🏇 Some of selected resources were not committed. 선택한 리소스 중 일부가 커밋되지 않았습니다. Override and Commit 했더니 저래뜬다. 방법 1 실패 했음 방법 2 - 실패 했음 방법 3 - 해결 기존 파일을 백업 뜬다. overrode update받아. 백업 파일을 프로젝트에 저장 commit 🧡 블로그 글이 도움이 되었다면 좋아요 구독 감사합니다 꾸벅 💛 개발중/Troubleshooting 2021. 5. 12. 이전 1 ··· 30 31 32 33 34 35 36 ··· 53 다음