삽질 기록-error 15

[Eclipse] 톰캣 404 에러

[Eclipse] 톰캣 404 에러 https://velog.io/@min-zi/%ED%86%B0%EC%BA%A3-404-%EC%97%90%EB%9F%AC [Eclipse] 톰캣 404 에러 velog.io https://java119.tistory.com/17 [Eclipse] 잘되던 프로젝트가 갑자기 안될때(feat.HTTP 404) 이 글은 이클립스(IDE) 기반으로 설명합니다. 어제까지 잘되던 프로젝트가 내일 출근하고 보니 맛(?)이 갈 때가 있습니다. 바아로 따라해봅시다 1.Project 2.Clean… 1.Servers 탭 2.Tomcat version Server at local java119.tistory.com

삽질 기록-error 2024.03.28

윈도우 명령 프롬프트(cmd)에서 ls = dir / clear = cls

결론만 간단히 하면, 윈도우 명령 프롬프트(cmd)에서 ls = dir / clear = cls 매번 리눅스에서 ls 쓰다가 안되서 갑자기 당황했다. 강의는 Mac OS였기 때문에 처음에는 아래 글과 같은 문제인가 했다. 환경변수 설정을 하다가 잘못해서 ls, vi와 같은 기본적인 명령어도 작동하지 않기 시작했다 ... zsh: command not found: ls zsh: command not found: vi 터미널 창에 다음과 같이 임시적으로 환경변수 설정을 해주면 vi, ls와 같은 명령어를 사용할 수 있다 export PATH=%PATH:/bin:/usr/local/bin:/usr/bin 그리고 잘못 수정한 ~/.zshrc와 같은 파일에서 환경변수 설정을 올바르게 고쳐준 후, source ~/..

삽질 기록-error 2023.03.14

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Failed to configure a DataSource 에러가 발생하는 이유는 Database에 연결할 때 필요한 정보가 없기 때문이다. 주로 스프링 프레임워크를 이용해 프로젝트를 구성하는 초기에 발생하는 문제이다. 간혹 모르고 application.properties 파일이나 application.yml 파일과 같은 설정 파일을 삭제하거나 위치를 옮겼을 때에도 볼 수 있는 현상이다. 내 경우엔 팀 프로젝트..

삽질 기록-error 2022.11.19

JdbcSQLIntegrityConstraintViolationException

@OneToOne(mappedBy = "post", fetch=FetchType.LAZY, cascade = CascadeType.PERSIST) private Opt opt; 원래 의도는 우리 서버의 데이터 베이스를 이용해서 가격책정을 해보려고 했기 때문에 게시글이 삭제되어도 옵션 선택사항이 지워지지 않게 하려고 했었다. 그랬더니 발생한 예외 JdbcSQLIntegrityConstraintViolationException 아래와 같이 고쳐서 해결 cascade = CascadeType.REMOVE https://velog.io/@woodyn1002/%EC%82%BD%EC%A7%88-%EB%A1%9C%EA%B7%B8-Hibernate%EC%97%90%EC%84%9C-%EB%B6%80%EB%AA%A8%EA..

삽질 기록-error 2022.11.19

jdbcsqlsyntaxerrorexception

jdbcsqlsyntaxerrorexception 예약어..ㅂㄷㅂㄷ year, option 둘 다 예약어! 예약어 좀 더 찾아서 미리 숙지해두자 클래스명이 예약어면 빈으로 생성이 안되면서 실행이 안됨. 컬럼명이 예약어면 실행은 되는데 테이블 생성이 안됨. https://leeeehhjj.tistory.com/52 org.h2.jdbc.JdbcSQLSyntaxErrorException 에러 org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "CREATE TABLE SCHEDULES (ID BIGINT NOT NULL AUTO_INCREMENT, CONTENT VARCHAR(255), DATE VARCHAR(255) NOT NULL..

삽질 기록-error 2022.11.18

IllegalStateException: Ambiguous handler methods mapped for

스프링 @RequestMapping 호출 URL명 중복 ...ㅎ 게시판 두개를 같이 만들다보니까 일단 복사해서 붙여놨던 게 화근이었다.하하핳하..ㅜ 구글구글 https://devmg.tistory.com/114 스프링 에러 java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path 'http://.............' 스프링 @RequestMapping 호출 URL명 중복 devmg.tistory.com

삽질 기록-error 2022.11.17

Parameter 1 of constructor in com.example.spring_subject.service.CommentService required a bean of type 'com.example.spring_subject.dto.CommentResponseDto' that could not be found.

Parameter 1 of constructor in com.example.spring_subject.service.CommentService required a bean of type 'com.example.spring_subject.dto.CommentResponseDto' that could not be found. Action: Consider defining a bean of type 'com.example.spring_subject.dto.CommentResponseDto' in your configuration. https://velog.io/@agugu95/%EC%97%90%EB%9F%AC%EC%B2%98%EB%A6%AC-Parameter-1-of-constructor-in-1-requir..

삽질 기록-error 2022.10.19