기타
-
org.springframework.beans.factory.BeanCreationException기타 2023. 4. 18. 10:56
eclipse로 spring 프로젝트의 서버를 실행시켰는데 해당 에러가 발생했다. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testMapper' defined in file [D:\hojomu\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\TEAM_CONTROL_Reservation\WEB-INF\classes\control\project\mapper\TestMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgument..
-
게시판 번호 설정 (SelectKey 지정 에러)기타 2023. 4. 14. 12:08
selecting key or setting result to parameter object Mapper.xml에서 글을 쓸 때 select max(board_no)+1 board_no from port_board insert into port_board(board_no, title, contents, id) values(#{board_no}, #{title}, #{contents}, #{id}) 명령어를 실행한다 이 때 table에 데이터가 하나도 없고 board_no가 null 값으로 지정되어 있다면, selectKey 를 불러올 때 기존에 board_no 가 null이기 때문에 max(board_no)+1 board_no 를 찾을 수가 없어서 에러가 발생한다. table에 행을 하나 추가해서 max..
-
변수에 null 값이 들어갈 때 생기는 오류 ( java.lang.NumberFormatException )기타 2023. 4. 12. 12:41
WARN : org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver - Failed to bind request element: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: "undefined" 댓글을 삭제한 후, list를 불러오지 못하고 해당 오류가 발행했다. funct..
-
css 블록 height 지정 팁기타 2023. 4. 12. 10:13
- 위의 그림에 수정 , 삭제 버튼은 같은 제목이나 content와 같은 폼 태그 내부에 있으면서도, 오른쪽 정렬을 위해 float : right 를 줬더니 form 태그 밖으로 벗어났다. 이런 경우는 absolute나 float 처럼 블록이 같은 z 축 위에서 뜨는 속성을 줄 경우, 해당 요소를 포함하는 div가 높이 값을 가지지 못하기 때문이다. - 보이는 것과 같이 detail-btn-box 내부에는 detail-btn-box-right 가 있고, 그 안에 수정, 삭제 버튼이 있다. 하지만, detail-btn-box-right 가 float 이기 때문에, detail-btn-box 는 높이값을 잃어버렸다. 이 때 다음과 같은 설정을 해줌으로서 이를 방지할 수 있다. #detail-btn-box:a..
-
링크 모음기타 2023. 4. 6. 16:34
https://inpa.tistory.com/entry/BootStrap5-%F0%9F%93%9A-%EB%B6%80%ED%8A%B8%EC%8A%A4%ED%8A%B8%EB%9E%A9-%ED%85%9C%ED%94%8C%EB%A6%BF-%EC%82%AC%EC%9D%B4%ED%8A%B8-%EC%A0%95%EB%A6%AC#wrapbootstrap 🔮 부트스트랩 템플릿 사이트 모음집 부트스트랩 템플릿 사이트 모음 Bootstrap는 반응형 웹디자인을 기본으로 하고 있고, 다양한 웹 요소들의 디자인과 기능을 포함하고 있어 손 쉽게 사이트를 제작할 수 있다. 자신의 사이트에 맞는 inpa.tistory.com 부트스트랩 https://www.youtube.com/watch?v=67stn7Pu7s4 유튜브 클론코딩 cs..
-
HTTP 상태 415 – 지원되지 않는 Media Type기타 2023. 4. 5. 12:42
게시글에 댓글을 입력할 수 있는 기능을 추가하려고 했으나 위의 에러가 발생했다. - Controller 내부의 @RequestBody 매개변수를 선언하고 return값을 ResponseEntity로 받는다고 선언헀는데, 이는 해당 코드를 비동기식으로 처리하겠다는 말이다. 하지만, JSP에서 작성한 form 태그로부터 데이터를 받아오도록 작성 되어있었기 때문에, Header에서 Controller로 데이터가 이동하는 도중 동기, 비동기식 간의 충돌로 인해 해당 에러가 발생했다. 이를 방지하기 위해, 비동기식으로 선언된 controller에는 비동기식으로 생성된 데이터를 보내줘야한다. 따라서, JavaScript에서 비동기식으로 생성된 form을 만들어서 데이터를 보내줄 것이다.
-
eclipse , github 연결기타 2023. 4. 3. 11:13
github의 repository 생성 후 eclipse의 window -> show view -> other -> git 검색 후 -> git repositories 클릭 - Clone a git repository 를 클릭 - clone uri 클릭 - URI에 git repository의 주소를 넣고 USER 와 PASSWORD 에 깃 아이디와 비밀번호를 사용하자. - git 로컬 directory에 경로를 지정하고 finish repository 생성 중 아이디와 비밀번호를 한번 더 입력해야한다. 이 때 비밀번호는 git 토큰이다. - 다음과 같이 repository가 생성됬다. - repository에 추가하고싶은 프로젝트를 우클릭하고 team - share project 선택 - reposit..