Skip to content

Step3 - #120

Merged
javajigi merged 11 commits into
code-squad:gbeea1004from
gbeea1004:step3
Jan 6, 2019
Merged

Step3#120
javajigi merged 11 commits into
code-squad:gbeea1004from
gbeea1004:step3

Conversation

@gbeea1004

Copy link
Copy Markdown

질문~~

  • 이슈 삭제를 jquery를 통해 에러가 발생하면 alert 창을 띄우도록 구현을 했는데
    브라우저에서 이슈 삭제 시 정상적으로 이슈가 삭제는 되는데 ajax 상에서 error메서드를 호출하네요..
    이유를 모르겠습니다..

  • IssueAcceptanceTest 에서 테스트 케이스 작성 후 테스트를 하려는데

IllegalStateException : Failed to load ApplicationContext 

에러가 계속 뜨는데 이유를 모르겠어요ㅠㅠ

@javajigi

javajigi commented Jan 6, 2019

Copy link
Copy Markdown
Contributor

@gbeea1004
에러 원인은 내일 같이 찾아봅시다.

@javajigi javajigi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

피드백 남겼어요.
피드백 반영하고 에러 원인 찾아 해결해 보죠.

this.writer = writer;
}

public Issue(long id, String subject, String comment, User writer) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

생성자가 너무 많은데 좀 줄일 수 있는 방법은 없을까?

}

this.contents.setSubject(updateIssueContents.getSubject());
this.contents.setComment(updateIssueContents.getComment());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

contents.update(updateIssueContents) 또는 this.contents = updateIssueContents 는 어떨까?


public interface IssueRepository extends JpaRepository<Issue, Long> {
Iterable<Issue> findByDeleted(boolean deleted);
Optional<Issue> findBySubject(String subject);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 메소드가 왜 필요한가? 이 메소드 없이 구현할 수 없을까?

@javajigi
javajigi merged commit 4da5b51 into code-squad:gbeea1004 Jan 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants