소통하는 개발자 Sean
article thumbnail
Date.toISOString을 한국시간으로 맞추기 (+date 다루기)

1. 에 현재 날짜를 기준으로 value값을 변경해주어야 했다. 2. 계약 만료일은 현재 날짜를 기준으로 +2년을 해주어야 한다. 3. 현재 시각은 2022-03-20 01:56:23 인데, ISOString()으로 설정하니까 하루차이가 난다. 1,2,3 을 해결하는 코드만 보면 이렇다. const offset = new Date().getTimezoneOffset() * 60000; const date = new Date(Date.now() - offset); $("input[name=startDate]").attr('value', date.toISOString().substring(0, 10)) date.setFullYear(date.getFullYear()+2) $("input[name=endDat..

article thumbnail
[boot] 테스트 시 오류 (Execution failed for task ':test')
Web Programming/Spring Boot 2021. 9. 4. 17:41

Execution failed for task ':test'. > No tests found for given includes: [com.sjs.jsvill.repository.MemoRepositoryTests.testInsertDummies](filter.includeTestsMatching) * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 해결책 : ctrl+alt+s -> settings -> Build Tools -> Gradle 테스트구동을 Gradle -> inte..

article thumbnail
[Spring Boot] Hibernate 사용 시 Error creating bean with name 'entityManagerFactory' 해결방법 여러개!
Web Programming/Spring Boot 2021. 6. 10. 23:47

오류 내용 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.J..

article thumbnail
AWS EC2 WINDOW 사용해서 프로젝트 외부 Oracle DataBase 만들기(3)
Cloud/AWS 2020. 12. 25. 02:15

저번 포스팅 참고하세요~~! https://sean-lets-go.tistory.com/15?category=868474 AWS EC2 WINDOW 사용해서 프로젝트 외부 Oracle DataBase 만들기(1) 팀 프로젝트를 하고 있다가, 외부(공용) DataBase 를 사용해야 하는데 뭐가 좋을까 하고 찾아보던중 마땅한 포스팅이 없어서 제가 직접 작성하게 되었습니다. AWS에 RDS라는 전용 DataBase가 있지만 저 sean-lets-go.tistory.com https://sean-lets-go.tistory.com/16 AWS EC2 WINDOW 사용해서 프로젝트 외부 Oracle DataBase 만들기(2) 첫 포스팅은 참고하세요~! https://sean-lets-go.tistory.com..

article thumbnail
AWS EC2 WINDOW 사용해서 프로젝트 외부 Oracle DataBase 만들기(2)
Cloud/AWS 2020. 12. 25. 02:07

첫 포스팅은 참고하세요~! https://sean-lets-go.tistory.com/15?category=868474 AWS EC2 WINDOW 사용해서 프로젝트 외부 Oracle DataBase 만들기(1) 팀 프로젝트를 하고 있다가, 외부(공용) DataBase 를 사용해야 하는데 뭐가 좋을까 하고 찾아보던중 마땅한 포스팅이 없어서 제가 직접 작성하게 되었습니다. AWS에 RDS라는 전용 DataBase가 있지만 저 sean-lets-go.tistory.com 2. AWS EC2 WINDOW에 DB + SQL DEVELOPER 설치 및 DB EXPORT & IMPORT https://www.oracle.com/database/technologies/xe-prior-releases.html#licen..

article thumbnail
AWS EC2 WINDOW 사용해서 프로젝트 외부 Oracle DataBase 만들기(1)
Cloud/AWS 2020. 12. 25. 01:54

팀 프로젝트를 하고 있다가, 외부(공용) DataBase 를 사용해야 하는데 뭐가 좋을까 하고 찾아보던중 마땅한 포스팅이 없어서 제가 직접 작성하게 되었습니다. AWS에 RDS라는 전용 DataBase가 있지만 저는 Oracle DB를 구축해야 하는데 요금이 많이 나오는 관계로 AWS EC2 WINDOW에 ORACLE을 설치하고 오픈을 해서 외부 DB를 만들 것입니다!! 웬만한 것들은 캡처를 다 해놓았으니 잘 따라가시면 30분~1시간안에 하실 수 있을 것 입니다. (컴퓨터 사양에 따라 조금씩 차이가 있습니다.) 분량이 많아서 1. AWS 회원가입 및 AWS EC2 WINDOW 설치 및 접속 2. AWS EC2 WINDOW에 DB + SQL DEVELOPER 설치 및 DB EXPORT & IMPORT 3...