본문 바로가기
반응형

전체 글126

[ GitHub ][ Git ] 이전 commit 되돌리기, 취소 하는 방법 git reset을 사용한 commit 되돌리기 방법으로, 팀 프로젝트 진행 시에는 사용을 지양해 주시길 바랍니다.개인 프로젝트나 개인 공부를 할 때 사용하기에 적합한 방법입니다.시간이 없으신 분들은 여기를 클릭해 주세요. 바로 정리 부분으로 이동합니다. :)상황 구현기존은 올바른 코드를 작성 한 후의 hello.md 파일입니다. 일반적인 방법으로 git commit과 push를 합니다. hello.md1. 첫 번째 커밋 올바른 코드... git commit$ git add .$ git commit -m "첫 번째 commit: 올바른 코드"$ git push origin main 1번째 커밋은 정상적으로 완료된 상태입니다. 이 상태에서 잘못 작성한 코드를 작성하고 git commit과 push를 합니다.. 2024. 7. 10.
[JS] Uncaught SyntaxError: Cannot use import statement outside a module 에러 해결 방법 💥 console 에러 메시지Uncaught SyntaxError: Cannot use import statement outside a module❓에러 발생 이유브라우저가 해당 script를 ES6 모듈로 인식하지 못해서 발생하는 문제입니다. ✅ 해결 방법-->수정 코드 math.jslet pi = 3.14;export { pi }; index.jsimport { pi } from "./math.js";console.log(pi);참고로  태그에type="module"를 추가하면 strict-mode가 활성화됩니다. 2024. 7. 10.
[ Spring ] The bean 'delegatingApplicationListener' 에러 해결 방법 💥 application run 시 발생한 에러 메시지***************************APPLICATION FAILED TO START***************************Description:The bean 'delegatingApplicationListener', defined in class path resource [hello/sns/configuration/AuthenticationConfig.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/security/config/annotation/web/.. 2024. 5. 28.
[ Spring ] TransientPropertyValueException 에러 해결 방법 💥 application run 시 발생한 에러 메시지Error creating bean with name 'initDb': Invocation of init method failedCaused by: java.lang.IllegalStateException: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing : jpabook.jpashop.domain.OrderItem.item -> jpabook.jpashop.domain.item.ItemCaused by: org.hibernate.TransientP.. 2024. 5. 20.
반응형