일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- 메소드
- 코딩초보
- 자바
- 자바 스프링
- 스프링
- 자바프로그래밍
- 컴퓨터과학개론
- Java
- 리눅스
- JAVA기초
- 프로그래밍기초
- eclips
- 초보코딩탈출
- 자바기초
- github
- Elk
- 배열
- 스프링 기초
- 프로그래밍
- spring
- 클래스
- 프로그래밍언어
- 기초코딩
- JShell
- 이클립스
- 알고리즘
- Git
- 초보코딩
- 제이쉘
- 데이터베이스
- Today
- Total
목록분류 전체보기 (196)
키보드워리어

안녕하세요 【키보드 워리어】 블로그 방문자 여러분, 안경닦이입니다. 오늘은 롬복 기능에 대해 포스팅합니다. 롬복 기능 구현 (builde.gradle) 맨 처음엔 plugin으로 롬복을 다운받은 이후에 build.gradle 파일을 수정합니다. dependencies { implementation('org.projectlombok:lombok') annotationProcessor ('org.projectlombok:lombok') testAnnotationProcessor('org.projectlombok:lombok') } *gradle 버전이 올라오게 되면서 compile이 implementation으로 변경되었습니다. test코드를 작성할때 만약 error: cannot find symbol gr..

이번에도 어김없이 테스트 코드 에러를 해결해보려고 합니다. 보통 테스트 코드를 mysql버전으로 보고 싶어 application.properties를 이렇게 씁니다. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect 그런데 이건 gradle버전에 따라 조금씩 에러가 발생합니다. 챗지비티 한계 챗지피티에 물어보면 이런 답을 가끔씩 내뱉는데 짜증도 나죠 ㅋㅋㅋ 죄송합니다. 저는 gadle에 대한 최신 정보를 가지고 있지 않습니다. 하지만 gradle에 대한 자세한 정보를 알려드릴 순 있습니다 아래의 링크를 클릭하세요.. 이걸 해결하기 위해 대부분 application.properties에서 조금만 수정하면 해결 ..

안녕하세요 인텔리 제이에서 테스트 코드를 아무리 해도 먹히지 않는 오류~ 어떻게 해결할까요??? 대부분 이런 경우는 설정화면에서 해결 할 수 있습니다. 두가지만 확인해주세요 해결방법 1. Build Tools -> Gradle 에서 Build and run using과 Run test using 을 모두 Intellij IDEA 로 바꿔주세요.. 2. Annotation Processors 의 Enable annotation processing을 체크해주세요. 글쓴이의 또다른 글 보려면? 2023.04.27 - [개발 관련/어려웠던것들] - [spring framework] 테스트 코드 mysql버전 보고 싶을때 [spring framework] 테스트 코드 mysql버전 보고 싶을때 이번에도 어김없이 ..

안녕하세요 오늘은 인터페이스 Map에 대한 소개를 하려고 합니다. 유용한 인터페이스 Map https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html Map (Java SE 17 & JDK 17) Type Parameters: K - the type of keys maintained by this map V - the type of mapped values All Known Subinterfaces: Bindings, ConcurrentMap , ConcurrentNavigableMap , NavigableMap , SortedMap All Known Implementing Classes: AbstractMap, Attr..

안녕하세요 【키보드 워리어】 블로그 방문자 여러분, 안경닦이입니다. 오늘은 Auditing기능으로 자동 생성일, 수정일을 만들어 보도록 할게요. Auditing기능은 모든 Entity의 상위 클래스로 상속받게 하여 createdDate, ModifiedDate자동 관리가 됩니다. //모든 Entity의 상위 클래스로 createdDate,ModifiedDate자동 관리 //Application 클래스에 @EnableJpaAuditing 지정 @Getter @MappedSuperclass //Entity클래스들이 BaseTimeEntity 를 상속하면 필드 멤버도 컬럼으로 인식 @EntityListeners(AuditingEntityListener.class)//Auditing기능 자동 포함 public ..

Rest Controller코드 테스트 해보기 @RestController public class HelloController { @GetMapping("/hello") public String hello(){ return "hello"; } @GetMapping("/hello/dto") public HelloResponseDto helloResponseDto(@RequestParam("name") String name, @RequestParam("amount") int amount){ return new HelloResponseDto(name,amount); } } 간단한 경로 /hello 경로와 /hello/dto 매핑 구현시 이를 테스트로 해본다면 다음과 같이 짜볼 수 있음. @RequestPara..