
> java -version Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment. 여러 사이트의 해결법이 안 될 경우 java.exe 의 경로를 모두 다 집어넣고 실행 시킨다. > "C:\Program Files\openjdk\jdk-16\bin\java.exe" -version 끝.
context 추가. context-transaction.xml 파일이 있다면 수정. 없다면 추가. 트랜잭션 처리 할 서비스 패키지 명을 넣어준다. or execution(* egovframework.패키지명..*Service.*(..)) context-transaction.xml AbcService.java @Transactional 어노테이션, throws Exception @Transactional public int testTran(Map m) throws Exception{ int cnt = 0; cnt = testMapper.정상쿼리(m); cnt += testMapper.오류쿼리(m); return cnt; } AbcController.java @RequestMapping("/test/tes..
jdk 1.7, 전자정부프레임워크 3.8 (spring 4.3) 오래전에 해서 잘 기억 나지 않지만 다시 사용하기 위해 몇가지 기억나는 부분만 등록. 1. pom.xml debdependency 추가 org.hibernate hibernate-validator 4.2.0.Final 2. java Controller (write, insert 처리) package egovframework.sample.bbs.controller; import javax.annotation.Resource; import javax.validation.Valid; import javax.validation.Validator; import org.apache.commons.logging.Log; import org.apache...

jdk 7, egovframework 3.8 (spring 4.3) 1. pom.xml에 dependency 추가 net.sf.ehcache ehcache-core 2.6.9 slf4j-api org.slf4j 2. 캐시 설정 추가 xml name : 캐시의 이름이다. @Cacheable("캐시의 이름") 와 일치시켜줘야한다. eternal : 한번 캐시하면 영원히 유지할 것인지의 여부 maxElementsInMemory : 메모리에 보유할 최대 오브젝트 수 overflowToDisk : 메모리저장공간이 부족할때 Disk 사용여부( true,false ) diskPersistent : flush시에 파일로 저장 여부 ( trun , false ) timeToIdleSeconds : 데이터가 지정된 시간(..
1. dependency 추가. com.drewnoakes metadata-extractor 2.9.1 2. java 코드 수정 private void makeThumbnail(String filePath, String fileName, String fileExt) throws Exception { int maxWidth = 250, maxHeight = 250; // 썸네일 가로 세로 사이즈 //파일을 읽는다. File imageFile = new File(filePath); // 원본 파일의 Orientation 정보를 읽는다. int orientation = 1; // 회전정보, 1. 0도, 3. 180도, 6. 270도, 8. 90도 회전한 정보 int width = 0; // 이미지의 가로폭 i..
1. dependency 추가 org.imgscalr imgscalr-lib 4.2 2. 썸네일 생성 코드 private void makeThumbnail(String filePath, String fileName, String fileExt) throws Exception { // 썸네일 가로, 세로 사이즈 int maxWidth = 250, maxHeight = 250; // 파일을 읽는다 BufferedImage srcImg = ImageIO.read(filePath); // 썸네일 생성 BufferedImage destImg = Scalr.resize(srcImg, maxWidth, maxHeight); // 썸네일 파일명 지정 이름 뒤에 _THUMB 추가하여 파일 생성 String thumbNa..
1. 버전 pom.xml 4.3.16.RELEASE 3.8.0 2. context-task.xml 3. TaskTest.java package egovframework.test.task.component; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component public class TestTask { @Scheduled(cron="0/30 * * * * *") //매 0초 30초에 실행 public void test1() throws Exception { System.out.println("task run"); } } 끝.
- Total
- Today
- Yesterday
- 배드워즈
- 시즌3
- 로블록스
- 메소드 제한
- nginx
- 윈도우
- 전자정부프레임워크
- 베트남
- eGovFramework
- Spring
- 단축키
- 블루스택
- 설치
- tomcat
- 수원
- mysql
- 오토핫키
- 호이안
- java
- 라즈베리파이
- 달빛조각사
- autohotkey
- 다운로드
- Spring Boot
- mariaDB
- lineage2m
- 시즌패스
- 설정
- download
- 구글 플레이 게임즈
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |