qheogus55
@qheogus555834
Reviews Written
-
Average Rating
-
Posts
Q&A
์๋ ํ์ธ์! ๊ฐ์ฌ๋ ์์ธ์ฒ๋ฆฌ์ ๋ํ ์ง๋ฌธ์ด ์์ต๋๋ค.
๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค !!!!!!!!!!
- 0
- 2
- 350
Q&A
์๋ ํ์ธ์ ๊ฐ์ฌ๋! ์ง๋ฌธ์์ต๋๋ค.!
public enum Role { ROLE_CUSTOMER, ROLE_SELLER; }// public class Customer extends BaseTimeEntity { @Enumerated(EnumType.STRING) private Role role; } @Override public Collection getAuthorities() { Collection authorities = new ArrayList(); authorities.add(new GrantedAuthority() { @Override public String getAuthority() { return customer.getRole().toString(); } }); return authorities; } @Override public void signUpCustomer(CustomerSignUpDto customerSignUpDto) throws Exception { Customer customer = customerSignUpDto.toEntity(); customer.encodePassword(passwordEncoder); customer.addCustomerAuthority(); if (customerRepository.findByUsername(customer.getUsername()).isPresent()) { throw new Exception("์ด๋ฏธ ์กด์ฌํ๋ ์์ด๋์ ๋๋ค."); } customerRepository.save(customer); } public void addSellerAuthority(){ this.role = Role.ROLE_SELLER; }๋ต๋ณ ๋งค์ฐ๊ฐ์ฌ๋๋ฆฝ๋๋ค!!ํน์ ์ด ์ฝ๋๋ ์ ๋๋ก ๋์ํ๋๋ฐ ๋ฌธ์ ์์๊น์?..
- 0
- 2
- 620
Q&A
H2์ฐ๊ฒฐ์ค๋ฅ ์ ๋๋ค.
๋น ๋ฅด๊ณ ์น์ ํ๋ต๋ณ ๋งค์ฐ ๊ฐ์ฌ๋๋ฆฝ๋๋ค
- 0
- 3
- 398
Q&A
JSON ํ์์ผ๋ก ํ์ฑํ๋ ์ด์ ?..
์๊ฐ๋ด์ฃผ์ ์ ์น์ ํ ๋ต๋ณํด์ฃผ์ OMG๋ ์ง์ฌ์ผ๋ก ๊ฐ์ฌ๋๋ฆฝ๋๋ค!
- 1
- 3
- 881
Q&A
v3,v4,v5 ํ์ดํธ๋ผ๋ฒจ์ค๋ฅ
ํ๋์คํ ๋ฐ ์๊ฐ๋ญ๋นํ๊ฒํด์.. ์ฃ์กํ๊ณ ๊ฐ์ฌํฉ๋๋ค ใ
- 0
- 7
- 723
Q&A
v3,v4,v5 ํ์ดํธ๋ผ๋ฒจ์ค๋ฅ
์ฃ์กํฉ๋๋ค ํด๋ณด์์ง๋ง ์ค๋ฅ๊ฐ๋ญ์ง๋ชฐ๋ผ์ ๊ตฌ๊ธ๋๋ผ์ด๋ฒ์ฃผ์์ฌ๋ฆฌ๊ฒ ์ต๋๋คใ ใ . https://drive.google.com/file/d/17lkrjhbYaYvOoTMCYbuvR9U7Wll9HSUg/view?usp=sharing ํญ์ ์น์ ํ๋ต๋ณ๊ฐ์ฌ๋๋ฆฝ๋๋ค
- 0
- 7
- 723
Q&A
v3,v4,v5 ํ์ดํธ๋ผ๋ฒจ์ค๋ฅ
(์ฌ์ง) ๊ณ์ธต๊ตฌ์กฐ์ ๋๋ค
- 0
- 7
- 723
Q&A
v3,v4,v5 ํ์ดํธ๋ผ๋ฒจ์ค๋ฅ
Execution failed for task ':ServletApplication.main()'. > Build cancelled while executing task ':ServletApplication.main()' * 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.์ค๋ฅ๊ฐ ๋จ๊ณ (์ฌ์ง) ์ด๋ ๊ฒ ์ค์ ํ์์ต๋๋ค
- 0
- 7
- 723
Q&A
ํ ์คํธ์ ์ค๋ฅ์ ๋๋ค ใ ์ง๋ฌธ๋๋ฆฝ๋๋น
๋ต๋ต(์ฌ์ง)
- 0
- 3
- 303




