error 7

[MySQL]Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.

Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. "안전 업데이트 모드를 사용 중이며 KEY 열을 사용하는 WHERE없이 테이블을 업데이트하려고했습니다. 안전 모드를 비활성화하려면 기본 설정-> SQL 편집기에서 옵션을 토글하고 다시 연결합니다." MySQL에서 update하던 중 에러가 발생했다. 게시글 목록을 담아두는 테이블 tbl_board에 각 게시글에 달린 댓글 수를 조회할 수 있도록..

ERROR!!!!!!! 2020.09.13

자바스크립트를 이용한 페이징 삽질 - 일반 함수의 this와 화살표 함수의 this는 다르다

JS 삽질기 js에 미숙하다 보니까 별것 아닌데 몇 시간을 삽질했다. 나는 여기서 a태그의 href속성을 받아오려고 했다. 모던 자바스크립트를 써보겠다고 화살표 함수를 고집했다. 자꾸 this값이 오지 않았다. 화살표 함수 때문일 것이라고는 1도 생각 못하고 계속 딴짓만 했다. 원하는 결과는 페이지 넘버 3페이지면 3. 5페이지면 5였는데, 자꾸 이런 결과만 나왔다. 속성을 뒤져봐도 내가 원하는 값을 가진 프로퍼티는 없었다. 도대체 뭘까? 별 걸 다 해봤는데. 그러니까 $(document).ready(() => {....})로 선언했던 것을 $(document).ready(function() {....})로 다시 바꿔도 보고. 그러면서도 화살표 함수를 바꿀 생각을 왜 하지 못했는지 모르겠다. 난 표현식만..

ERROR!!!!!!! 2020.09.13

👿[Spring Error] java.lang.IllegalStateException: No primary or default constructor found for class || @Builder && @NoArgsConstructor

java.lang.AssertionError: Request processing failed; nested exception is java.lang.IllegalStateException: No primary or default constructor found for class com.coco.domain.BoardVO at org.junit.Assert.fail(Assert.java:89) at com.coco.controller.BoardControllerTest.registerTest(BoardControllerTest.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAc..

ERROR!!!!!!! 2020.09.13

👿[Spring Error] java.lang.NoClassDefFoundError: javax/servlet/SessionCookieConfig

MockMvc로 컨트롤러 테스트 중 에러 @Test public void getAllPostTest() { ModelMap result; try { result = mockMvc.perform(MockMvcRequestBuilders.get("/board/list")) .andReturn() .getModelAndView() .getModelMap(); assertNotNull(result); log.info(result); } catch (Exception e) { fail(e.getMessage()); } } java.lang.NoClassDefFoundError: javax/servlet/SessionCookieConfig at org.springframework.test.context.web.Ab..

ERROR!!!!!!! 2020.09.13

👿 [Spring Error]java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy

MyBatis - Spring 연결 테스트 중에 이런 에러가 발생했다. INFO : org.springframework.test.context.support.DefaultTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.con..

ERROR!!!!!!! 2020.09.13

👿[Git Error] Lf will be replaced by CRLF in README.md.

가끔 git add하다 보면 이런 에러가 발생한다. warning: Lf will be replaced by CRLF in README.md. The file will have its original line endings in your working directroyWindow는 Line Ending으로 CR(Carriage-Return, \r)과 LF(Line Feed, \n)를 사용한다. 반면 유닉스나 맥은 LF만 쓴다. 윈도에서는 CRLF 를 사용하므로 저장소에서 가져올 때 LF 를 CRLF 로 변경하고 저장소로 보낼 때는 CRLF 를 LF 로 변경하도록 true 로 설정한다. Windows git config --global core.autocrlf true

ERROR!!!!!!! 2020.09.13

NoSuchBeanDefinitionException: No bean named 'dataSource' available

스프링 시큐리티 로그인 방법 중에 JDBC를 이용한 로그인 인증 테스트를 진행했다. 그런데 하루종일 dataSource를 찾을 수 없다는 에러NoSuchBeanDefinitionException: No bean named 'dataSource' available가 났다. 처음엔 dataSource가 잘 연결 되지 않은 줄 알고 root-context.xml을 만지작거렸다. 딱히 잘못된 부분은 없었다. url, id, pw 모두 잘 설정되어 있었다. 테스트 클래스를 만들어서 DataSource가 잘 동작하는지 테스트 해봤을 때도 문제가 없었다. security-context.xml에서도 크게 문제될 건 없었다. 문제는 web.xml에 있었다. 이렇게 파라미터 값이 따로 설정되어 있었다. 이것을 이렇게 하나..

ERROR!!!!!!! 2020.09.09