swagger 2 -> 3로 업그레이드 진행하면서 프로젝트 띄울 때 [springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper.scanDocumentation:98] - Unable to scan documentation context default java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "this.id" is null 해당 에러가 발생했다. 라이브러리가 겹치는게 있어서 그런지 이것저것 해보다가 결국은 swagger 버전이 올라가면서 에노테이션 변경으로 인한 문제였다. 기존 사용하던 @ApiModelProperty을 모두 @Sc..
test 코드를 작성하던 중 org.mockito.exceptions.misusing.UnnecessaryStubbingException Please remove unnecessary stubbings or use 'lenient' strictness. More info: javadoc for UnnecessaryStubbingException class. 라는 에러가 떴다. 에러가 나는 쪽 소스는 version에 따라 실행하는 로직이 달랐는데 메소드 모두 스터빙 처리를 해줘서 나는 에러였다. if (ObjectUtils.isEmpty(version)) { findObject = repository.findTopByCode(code); } else { History history = historyRepo..
처음 프로젝트를 받았을 때 No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system. 에러가 나면서 clean, compile 등등이 되지 않았다. setting ->Build, Execution, Deployment -> Build Tools -> Maven Use Maven wrapper로 되어 있던 Maven home path를 Bundled (Maven 3)로 변경하고 apply.
java: cannot access com.service.ArticleDispatchService$3 bad class file: /D:/source/inteliJ/project/godohwa/test/target/classes/com/service/ArticleDispatchService$3.class bad enclosing method attribute for class com.service.ArticleDispatchService$3 Please remove or make sure it appears in the correct subdirectory of the classpath. 프로젝트를 실행시키는데 있는 클래스 파일이 존재함에도 불구하고 계속 에러가 떴다. 인텔리제이를 사용중이며 clean ..
mysql을 사용하고 있었고 mybatis쪽에 update foreach, 다중 업데이트 구문이 실행이 안됐는데 한 번만 반복하게 하면 정상적으로 처리가 됐다. 다중 반복문에서는 ; bad SQL grammar[]; nested exception is java.sql.SQLSyntaxErrorException 해당 에러만 주구장창 났다. mysql에서 여러 다중 업데이트 구문을 실행하려면 db connection쪽을 수정해줘야 한다. jdbc:mysql://0.0.0.42:3306/testDatabase?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&allowMultiQueries=true mysql은 기본적으로 하나의 SQL 실행 ..
아이패드와 몇몇 아이폰 기종에서 Date가 안나오고 NaN이라고 뜨는 이슈가 들어왔다. 자바스크립트에서 흔히 사용하는 Date 객체에 String 타입의 날짜를 담아 사용할 때, ex : new Date('2021-08-08'); 사파리에서는 Invalid Date error를 내뱉는다. 해당 이슈를 해결하기 위해 moment.js 날짜 라이브러리를 사용했다. moment.js를 사용하면 모든 기종 및 사파리에서도 사용 가능하다. date 객체를 생성할 때 new Date(); 를 사용한다면 moment.js 에서는 moment();, moment(new Date()); 를 사용하여 현재 날짜를 가져올 수 있다 [ 날짜 format ] var date = '2021-08-22 03:..
- Total
- Today
- Yesterday