JAVA Spring Redis 검색 조회 및 페이징 기능 public List getSearchDataList(String searchData, int pageNum, int pageSize) { if("all".equals(searchData)){ searchData = "*"; } else { searchData = "*"+searchData+"*"; } ScanOptions scanOptions = ScanOptions.scanOptions().match(searchData).build(); Cursor keys = redisTemplate.getConnectionFactory().getConnection().scan(scanOptions); List keysDataList = new ArrayL..

Spring Boot VM arguments 세팅 방법 (properites, profile, System.getProperty) 1. 프로젝트 오른쪽 클릭 > Run As > Run Configuration ... 클릭 2. Arguments 탭 > VM arguments 내 작성 -Dkey=value 3. Java에서 사용시 System.getProperty("key") 로 가져와서 사용 String license = System.getProperty("app.license"); 끗12#!@#

Eclipse gradle import Unsupported class file major version 61 error 해결방법 Could not run phased build action using connection to Gradle distribution ... startup failed: General error during conversion: Unsupported class file major version 61 java.lang.IllegalArgumentException: Unsupported class file major version 61 gradle, jdk 세팅 안되있어서 그런것.. java path 가 잡혀있지 않음 1. 프로젝트 우클릭 > Properties > Gradle >..
Spring Batch Job 실행 중 비정상적인 Job 상태 변경하는 법 ContextRefreshedEventListener.java import java.util.Date; import java.util.Set; import org.springframework.batch.core.BatchStatus; import org.springframework.batch.core.JobExecution; import org.springframework.batch.core.StepExecution; import org.springframework.batch.core.explore.JobExplorer; import org.springframework.batch.core.repository.JobRepositor..
Spring Batch Job Complete 상태 동일 Job 생성 방법 private final JobLauncher jobLauncher; private final MemberJobConfiguration jobConfig; JobParameters jobParameters = new JobParametersBuilder().addLong("time",System.currentTimeMillis()).toJobParameters();// 동일 작업 실행하기 위해 set JobExecution execution = jobLauncher.run(jobConfig.membersJob(), jobParameters); JobParameters를 생성하여 파라미터 값을 계속 변경 해 주면 성공한 Job이라도..
Spring Batch 배치 정보 테이블 생성 없이 사용하는 방법 BatchConfiguration.java import javax.sql.DataSource; import org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer; import org.springframework.context.annotation.Configuration; import lombok.extern.slf4j.Slf4j; @Slf4j @Configuration public class BatchConfiguration extends DefaultBatchConfigurer { // @see org.springframework.batch.core...
JAVA @ApiOperation(value="엑셀 다운로드", notes="엑셀다운로드") @GetMapping("/excelDownload") public ResponseEntity selectItemListExcelDownload(HttpServletRequest request, ItemListReqDto itemListReqDto) { long beforeTime = System.currentTimeMillis(); log.info("엑셀 쿼리 조회 시작 : "+beforeTime); List itemList = new ArrayList(); itemList = service.selectItemListExcelDownload(itemListReqDto); long afterTime = System..
Java Decompiler .class 파일 디컴파일하여 소스보기 http://java-decompiler.github.io/#jd-gui-download Java Decompiler The “Java Decompiler project” aims to develop tools in order to decompile and analyze Java 5 “byte code” and the later versions. JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reco java-decompiler.github.io JD-GUI > download 탭 > j..
JAVA 시작, 종료시간 계산 (분으로 환산) // 시작시간, 종료시간 받아서 시간 계산 public static int getMin(String str, String end) { int result = 0; try { String[] str_arr = str.split(":"); int str_hour = Integer.parseInt(str_arr[0]); int str_minute = Integer.parseInt(str_arr[1]); String[] end_arr = end.split(":"); int end_hour = Integer.parseInt(end_arr[0]); int end_minute = Integer.parseInt(end_arr[1]); LocalDateTime sdt = L..
- Total
- Today
- Yesterday
- 리니지m
- 전국 일주 여행
- 초원사진관
- 돌장갑
- 담양 여행
- 군산 게스트하우스
- 고흥 여행
- 인터바이크
- 영광 여행
- 보성 여행
- 오라클 DB 링크
- 은파호수공원
- 나래바이크
- 송내역 카페
- 송내역 룸카페
- 스쿠터 여행
- Docker
- 제주도 스쿠터 여행
- 군산 여행
- 윈드스크린
- 송내 룸카페
- 남자 혼자 여행
- 베스파LX
- 국제반점
- 스쿠터 전국 일주
- 남자 혼자 국내 여행
- 송내 카페
- 군산 가볼만한곳
- kendo grid
- vscode
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |