소개
게시글
질문&답변
2023.07.31
빌드하고 실행하기 gradlew build 에러 ㅠㅠ
gradlew build 시 나오는 에러입니다. 기본적으로 소스코드를 컴파일 못하는데요?인텔리제에서는 잘 돌아갔었는데요.. (사진)D:\SpringTest\saproject>gradlew build> Task :compileJava FAILEDD:\SpringTest\saproject\src\main\java\com\example\saproject\controller\ArticleController.java:41: error: cannot find symbolreturn "redirect:/articles/" + saved.getId();^symbol: method getId()location: variable saved of type ArticleD:\SpringTest\saproject\src\main\java\com\example\saproject\controller\ArticleController.java:95: error: cannot find symbolArticle target = articleRepository.findById(articleEntity.getId()).orElse(null);^symbol: method getId()location: variable articleEntity of type ArticleD:\SpringTest\saproject\src\main\java\com\example\saproject\controller\ArticleController.java:103: error: cannot find symbolreturn "redirect:/articles/" + articleEntity.getId();^symbol: method getId()location: variable articleEntity of type ArticleD:\SpringTest\saproject\src\main\java\com\example\saproject\dto\ArticleForm.java:30: error: constructor Article in class Article cannot be applied to given types;return new Article(id, title, content);^required: no argumentsfound: Long,String,Stringreason: actual and formal argument lists differ in lengthD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:30: error: cannot find symbolif (dto.getId() != null)^symbol: method getId()location: variable dto of type CommentDtoD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:32: error: cannot find symbolif (dto.getArticleId() != article.getId())^symbol: method getArticleId()location: variable dto of type CommentDtoD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:32: error: cannot find symbolif (dto.getArticleId() != article.getId())^symbol: method getId()location: variable article of type ArticleD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:36: error: cannot find symboldto.getId(),^symbol: method getId()location: variable dto of type CommentDtoD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:38: error: cannot find symboldto.getNickname(),^symbol: method getNickname()location: variable dto of type CommentDtoD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:39: error: cannot find symboldto.getBody()^symbol: method getBody()location: variable dto of type CommentDtoD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:45: error: cannot find symbolif (this.id != dto.getId())^symbol: method getId()location: variable dto of type CommentDtoD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:48: error: cannot find symbolif (dto.getNickname() != null)^symbol: method getNickname()location: variable dto of type CommentDtoD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:49: error: cannot find symbolthis.nickname = dto.getNickname();^symbol: method getNickname()location: variable dto of type CommentDtoD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:50: error: cannot find symbolif (dto.getBody() != null)^symbol: method getBody()location: variable dto of type CommentDtoD:\SpringTest\saproject\src\main\java\com\example\saproject\entity\Comment.java:51: error: cannot find symbolthis.body = dto.getBody();^symbol: method getBody()location: variable dto of type CommentDtoD:\SpringTest\saproject\src\main\java\com\example\saproject\dto\CommentDto.java:23: error: cannot find symbolcomment.getId(),^symbol: method getId()location: variable comment of type CommentD:\SpringTest\saproject\src\main\java\com\example\saproject\dto\CommentDto.java:24: error: cannot find symbolcomment.getArticle().getId(),^symbol: method getArticle()location: variable comment of type CommentD:\SpringTest\saproject\src\main\java\com\example\saproject\dto\CommentDto.java:25: error: cannot find symbolcomment.getNickname(),^symbol: method getNickname()location: variable comment of type CommentD:\SpringTest\saproject\src\main\java\com\example\saproject\dto\CommentDto.java:26: error: cannot find symbolcomment.getBody()^symbol: method getBody()location: variable comment of type Comment19 errorsFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':compileJava'.> Compilation failed; see the compiler error output for details.* Try:> Run with --stacktrace option to get the stack trace.> Run with --info or --debug option to get more log output.> Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 4s1 actionable task: 1 executed
- 0
- 5
- 4.5K
질문&답변
2023.05.21
강의가 중복된 것 같습니다
화면에 강의 내용은 다운받을 수 없나요??저 주소로 들어가니 안나오는데요??
- 0
- 3
- 432
질문&답변
2023.04.21
질문드립니다.
(사진)(사진)(사진)
- 1
- 2
- 29K
고민있어요
2023.04.01 01:43
수업진도율을 초기화하는 방법은 없나요?
- 0
- 0
- 523