Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

강원대 BE_전혜지 2주차 과제 (1단계) #316

Open
wants to merge 6 commits into
base: hyejijun11
Choose a base branch
from

Conversation

HyeJiJUN11
Copy link

step1 상품 추가/수정시 이름에 대한 유효성 검사 구현 완료했습니다.

  1. 왜 에러가 떴는지 사용자 에게 알려주기 위하여 errorpage를 따로 구현 했습니다. html를 연결하기 전 에러 메세지만 리턴했을 때엔 intellij터미널에는 지정해준 메세지가 뜨는데 웹 화면에는 500에러가 떴습니다. @ResponseStatus(value = HttpStatus.BAD_REQUEST)를 설정해 줬음에도 400이 아닌 500이 뜨는 이유를 잘 모르겠습니다. 굳이 html파일을 따로 만들지 않고 알려줄 수 있는 방법도 있을까요?
  2. 정규 표현식을 이용하려다 처음인지라 잘 작성이 되지 않아 다른 방법으로 inCorrectName을 작성하여 특수기호에 대한 유효성 검사를 했습니다. 정규 표현식을 더 공부해서 코드를 바꾸는 편이 더 좋을까요?

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.

1 participant