inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

유현욱님의 게시글

유현욱 유현욱

@yho79555681

수강평 작성수
5
평균평점
4.4

게시글 8

질문&답변

Could not find or load main class 에러 해결

plugins { id 'org.springframework.boot' version '2.4.1' id 'io.spring.dependency-management' version '1.0.10.RELEASE' id 'java' } group = 'jpabook' version = '0.0.1-SNAPSHOT' sourceCompatibility = '11' configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-web' compileOnly 'org.projectlombok:lombok' runtimeOnly 'com.h2database:h2' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' //JUnit4 추가 testImplementation("org.junit.vintage:junit-vintage-engine") { exclude group: "org.hamcrest", module: "hamcrest-core" } } test { useJUnitPlatform() } build.gradle 입니다.

좋아요수
1
댓글수
2
조회수
14628

질문&답변

상품 등록중 오류가 발생합니다

@PostMapping("items/new") public String create(BookForm form) { Book book = new Book(); book.setId(form.getId()); book.setName(form.getName()); book.setPrice(form.getPrice()); book.setStockQuantity(form.getStockQuantity()); book.setAuthor(form.getAuthor()); book.setIsbn(form.getIsbn()); itemService.saveItem(book); return "redirect:/"; redirect 고치면 됩니다.

좋아요수
0
댓글수
2
조회수
556

질문&답변

fail() 예외를 try -catch로 잡아도 에러 발생

끝까지 답변 주신 OMG님 감사합니다. ㅠㅠ 드디어 고쳤네요. 아무리 봐도 제가 코드 잘못친거 같아서 PDF파일에 있는거 복붙 해봤더니 고쳐졌습니다. 감사합니다~~ 좋은하루보내세요

좋아요수
0
댓글수
2
조회수
729

질문&답변

expected를 인식하지 못합니다

저도 작성자님처럼 에러 발생해서 import문을 바꿨습니다 다른분들 참고하세요

좋아요수
0
댓글수
3
조회수
514