일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 테이블 컬럼 카멜 변환기
- Spring Boot
- 카멜케이스 변환
- Vo
- groupingby
- spring-boot
- DTO
- vo생성
- 이넘아
- Type Convert
- Profile
- ㅋㅅㅋ
- java
- 테이블명 조회
- enum
- 개행문자 치환
- 개행문자
- properties editor
- Stream
- 이넘
- forEach
- 람다식
- STS
- 줄바꿈
- dto생성
- JSTL
- 컬럼명 조회
- 슬로우 쿼리 설정정보 조회
- 로컬서버 바라보기
- message.properties
- Today
- Total
목록전체 글 (11)
코더가 되고싶은 남자

https://guney.kro.kr/camel 카멜따리 ~테이블 컬럼 카멜 표기법 변환기 이 프로그램을 통해 Underscore Notation으로 표기된 테이블 컬럼명을 Camel Notation으로 변환된 자바 필드명으로 변경할 수 있다. 사용법 USER_ID ADDR_HOME_STREET YOU_LOVE_ME_SO_guney.kro.kr 정직원때 dto 만들기가 너무 귀찮아 했는데 회사분께서 주신 html 파일을 조금 커스터마이징하여 임시 도메인으로 적용한 사이트이며, 스크립트 버그가 많이 살고있습니다..; 짬날때 마다 개선중

zip 다운로드로 Properties Editor zip 다운로드 주소 https://sourceforge.net/projects/propedit/ Properties Editor Download Properties Editor for free. Save time and effort of converting into Unicode through native2ascii. Properties Editor can directly edit property files written in Unicode reference characters, eliminating the need to convert to Unicode. In addition t sourceforge.net 1. See All Activitey 클릭 ..
테이블명, 컬럼명 조회 SELECT TABLE_SCHEMA , TABLE_NAME , COLUMN_NAME , COLUMN_COMMENT FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME LIKE '%컬럼명%' -- WHERE COLUMN_COMMENT LIKE '%코멘트명%' ; 슬로우 쿼리 설정정보 조회 show variables like 'slow_query_%';
public List clrInfoSet(List list, Class c) { //select List> clrList = golftelRoomBkdnBlckRepository.selectGolftelRoomBlckCstusClrList(UserVO.getUserInfo()); ObjectMapper objectMapper = new ObjectMapper(); ModelMapper modelMapper = new ModelMapper(); //DTO & VO > HashMap Convert List> mapList = objectMapper.convertValue(list, new TypeReference>>(){}); if (!clrList.isEmpty()) { //..
Integer limit = 10000; for (int i = 0; i < list.size(); i += limit) { CsvRecordVO csvRecordVO = makeCsvRecord(list.subList(i, Math.min(i + limit, list.size()))); }
안녕하신가? 자바에서 Map > vo로 컨버트 할 수 있는 코드인데 공통 함수로 쓰기 좋을 것이다. 1. HashMap -> vo 변환 public class CommonUtils { public static T convertVo(Map map, Class vo) throws Exception { T obj = null; if (ObjectUtils.isEmpty(vo)) { throw new Exception("CommonUtils convertVo : vo Class null"); } else { //vo 객체 생성 obj = vo.getConstructor().newInstance(); if (MapUtils.isEmpty(map)) { return obj; } else { for (Map.Entr..
ObjectMapper mapper = new ObjectMapper();//객체 선언 //Map > vo 컨버트 함수 mapper.convertValue(서비스.서비스함수명(param).get("getList"), new TypeReference(){}); 일케 하시면 되유... 보통 API 호출로 데이터를 Map으로 받을때 쓰기 좋음 convert 하는 도중 에러가 날 확률이 높다. 예를들어 vo, dto에 선언한 변수 중 int 형으로 들어가야하는데 API에서 null로 내려온 경우 API에서 내려온 response 컬럼 데이터 중 vo, dto에 선언이 안되어 있는 경우? 로인해 Exception 발생할 확률이 높다. 그때 @Alias("ProductDTO") @JsonIgnorePropertie..

우린 sts tool을 사용할때 application.yml 혹은 application.yaml에 spring.profiles: local --- spring.profiles: dev --- spring.profiles: stg . . . 등등 위 처럼 서버 구간계를 나누는 설정을 할 때가 있다. 프로젝트 셋팅 후 로컬 서버 실행 시 웬만하면 서버 구동이 안될 것이다. 이때 어느 프로파일을 바라봐야 하는지 몰라서 그런 것인뎅 이를 어느 구간계로 바라볼지에 대한 설정이다. 1. Run > Run Configrations > Spring Boot App에서 해당 서버 name 클릭 > Profile에서 원하는 구간계 설정 선택 하지만 1번방법은 profile 선택지가 안뜨거나, 선택지가 뜬다해도 서버 실행 ..