Posts
Q&A
๋น๋ํ๊ณ ์คํํ๊ธฐ 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
- 5.3K
Q&A
๊ฐ์๊ฐ ์ค๋ณต๋ ๊ฒ ๊ฐ์ต๋๋ค
ํ๋ฉด์ ๊ฐ์ ๋ด์ฉ์ ๋ค์ด๋ฐ์ ์ ์๋์??์ ์ฃผ์๋ก ๋ค์ด๊ฐ๋ ์๋์ค๋๋ฐ์??
- 0
- 3
- 513
Q&A
์ง๋ฌธ๋๋ฆฝ๋๋ค.
(์ฌ์ง)(์ฌ์ง)(์ฌ์ง)
- 1
- 2
- 30K