일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- java.lang.AssertionError
- Testcode
- BindingResult
- 김영한
- n+1
- jpa
- 인터셉터의 정의
- filter vs interceptor
- 401오류
- application-properties
- optional
- 유연한 컨트롤러1 - v5
- 쿠키란
- 필터의 정의
- 세션vs쿠키
- SpringMVC
- Validation
- MVC
- .orelseThrow
- @Controller
- 세션이란
- 쿠키의 정의
- controller
- abap value in field Data Class error
- spring
- 세션의 정의
- 필터vs인터셉터
- spring MVC
- springSecurityFilterChain 오류
- 구글 보안 api 활용
- Today
- Total
목록[WEB]오류들/inteilij-git오류 (6)
ABAP DUMP ERROR 24시
public interface MemberRepository extends JpaRepository { Optional findByEmail(String email); 다음과 같이 만들고 public Long addCart(CartItemDto cartItemDto, String email){ Item item = itemRepository.findById(cartItemDto.getItemId()).orElseThrow(EntityNotFoundException::new); Member member = memberRepository.findByEmail(email); 컴파일 오류발생 핵심은 Optional 을 사용했으면 .orElseThrow를 통해 Service를 날려 줘야 했던것! .orElseTh..

정리 jdk 관련 환경변수가 설정되지 안된 오류! 1.환경 변수에 시스템 변수의 새로 만들기(w) 클릭 2. 변수 이름 : JAVA_HOME 으로 설정 변수 값은 :jdk가 설치된 경로를 넣으면 된다. //참고 내 변수값은 다음과 같다. 아마 비슷한 경로에 설치되어 있을것이다. 끝.

정리 한글판 파일 => 설정 => 에디터 = > 파일 타입 => 파일형식이 파일 내용을 기반으로 자동으로 탐지됩니다. => index.html -클릭 영문판 File - Setteings - Editor - File Types => Auto-detect file type => index.html - 클릭 에서 index.html - 해주기! html로 잘 읽는다.

정리 application.preperties에 spring.profiles.active=local 를 추가한다. 만약 JavaMailSender의 @Profile("local") 로 설정하였으면 local 로 설정한다. 살펴보기 Parameter 1 of constructor in com.mywebpj.account.AccountService required a bean of type 'org.springframework.mail.javamail.JavaMailSender' that could not be found. JavaMailSender의 @Profile 설정을 확인후 application.properties에 다음을 추가한다. spring.profiles.active = local

정리 pom.xml에 org.springframework.boot spring-boot-starter-validation 2.6.2 를 추가하자! 살펴보기 validation이 실행이 안되는 오류가 발생했다. 추가하니 import org.hibernate.validator.constraints.Length; import javax.validation.constraints.Email; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Pattern; 사용 가능! @Valid 도 사용이 가능해졌다.

결론 : intellij 터미널에서 git pull --allow-unrelated-histories 를 사용해서 병합 혹은 처리를 하면 된다. hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. ! refs/heads/master:refs/heads/master [rejected] (non-fast-forward) hint: 'git pull ...') before pushing again. Done hint: See the 'Note about fast-forwards' in 'git push --he..