강의

멘토링

커뮤니티

Inflearn Community Q&A

No author

This post's author information has been deleted.

Spring for Beginners - Learn Spring Boot, Web MVC, and DB Access Technology with Code

Creating Member Domain and Repository

static 선언 이유

Written on

·

849

0

static을 붙여서 생성하면 클래스 변수기 때문에

 

인스턴스를 생성하지 않고 바로 사용할 수 있을 때 붙인다고 알고 있는데

 

sequence와 store에 static을 붙인 이유가 무엇일까요?

MVCmvcspring-bootspringjava

Answer 1

0

안녕하세요. hjemsti님, 공식 서포터즈 OMG입니다.
.

아래 링크를 참고해주세요. sequence와 store 모두 아래 링크에서 설명하는 내용에 포함됩니다.

https://www.inflearn.com/questions/240845/memorymemberrepository-line-number-7

.
감사합니다.

No author

This post's author information has been deleted.

Ask a question