프로그래밍 (57) 썸네일형 리스트형 How to detect browser. https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser?rq=1 에서 본 내용을 간단하게 정리해봄. 결과 spring-loaded 사용해보기. (작성일 기준으로 1.2.8 버전이 최신버전) 자바(with Spring)를 개발하다보면 Class를 추가/변경 하는 작업을 많이 한다. 그럴때마다 서버를 리스타트하는 일은 엄청나게 번거로운 일이다. 그래서 자동으로 reload 시켜주는 걸 찾아봤다. 1. 설치하기 - pom.xml org.springframework.boot spring-boot-maven-plugin org.springframework springloaded 1.2.8.RELEASE - jar 다운로드(이 경우에는 다운로드한 경로를 따로 복사해 놓으세요.)http://mvnrepository.com/artifact/org.springframework/springloaded/1.2.8.RELEASE 4. Spring Boot 1) ma.. [LOMBOK] constructor ... is already defined in class ... (1.16.22) 1. 현상 - Spring boot 1.5.14 로 프로젝트를 세팅하는 중 에러 발생. - Lombok Annotation 적용해놓은 class에서 컴파일 에러 - Github 이슈함 검색... 버그... @Data @NoArgsConstructor @AllArgsConstructor public class Sample { private String test1; private String test2; } 2. 해결법 - @NoArgsConstructor 를 @Data 보다 위에 선언해야한다. @NoArgsConstructor @AllArgsConstructor @Data public class Sample { private String test1; private String test2; } * 관련 문서.. [Spring Social Facebook] Error message is (#12) bio field is deprecated for versions v2.8 and higher User Bios - The bio field on the User object is no longer available. If the bio field was set for a person, the value will now be appended to the about field. 1. 문제 - spring-social-facebook:2.0.3 에서 'PROFILE_FIELDS' 내 bio 필드가 있어서 안됨. (위 내용 참고) - https://developers.facebook.com/docs/graph-api/changelog 1) 해결법 - 기존소스 Connection connection = facebookConnectionFactory.createConnection(accessGrant); .. How to create dynamic a form! 1. 동적으로 HTML Form을 생성 2. 문제 발생 1) 에러document.body.appendChild(formEle); - 위 소스를 추가 안할 경우 제대로 동작을 안함. 꼭 추가해야함. AWS s3 upload source Tip 1. Content Type - 파일명에 따라 ContentType을 설정한다. ObjectMetadata objMeta = new ObjectMetadata(); objMeta.setContentType(Mimetypes.getInstance().getMimetype(saveFileNm)); 2. Content Length - byte length를 추가한다.ObjectMetadata objMeta = new ObjectMetadata(); byte[] bytes = IOUtils.toByteArray(targetIS); objMeta.setContentLength(bytes.length); ByteArrayInputStream byteArrayIs = new ByteArrayInputStream(by.. json schema validator 사용하기 - 02 해당 내용은 https://github.com/java-json-tools/json-schema-validator 를 사용하면서 적은 내용입니다. 1. NodeType{.... "type": "string or array...."} - NodeType 목록 ARRAY("array"), BOOLEAN("boolean"), INTEGER("integer"), NULL("null"), NUMBER("number"), OBJECT("object"), STRING("string") - 해당 Library에서는 "com.github.fge.jackson.NodeType"를 참고하시면 편하게 코딩할 수 있다. 2. minItems, maxItems{.... "minItems":0, "maxItems":2....} -.. [Vue.js] How to use external Json File 1. Json 파일 import 하기. 2. 가져다 쓰기 {{tmp}} 이전 1 2 3 4 ··· 8 다음