본문 바로가기

전체 글

(111)
[SpringBoot] 서버 시작 시 에러 spring-boot 프로젝트를 생성하고 mvnw spring-boot:run명령어를 입력 하자마자 에러가 났다. Description:Web server failed to start. Port 8080 was already in use.Action:Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------..
[SpringBoot] Spring Seurity 정리 Spring Security Role 여러개 설정하기이 프로젝트에 Role 3개 존재한다.사원(STAFF), 매니저(MANAGER), 사장님(OWNER).STAFF정석으로 권한 계층 설정하는 방법도 있던데 너무 어려워서 다음에 해봐야겠다..authorizeHttpRequests() .antMatchers("/error/**", "/css/**", "/images/**", "/js/**").permitAll() .antMatchers("/dashboard", "/request/**", "/mypage").hasAnyRole("ROLE_STAFF", "ROLE_MANAGER", "ROLE_OWNER") .antMatchers( ..
[SpringBoot] input 태그의 date 타입을 자바 Date 객체로 파싱하기 form에 다음과 같이 input 태그를 date타입으로 설정하고 제출하면 Date 타입으로 자동으로 변환되지 않는다.400 bad request 에러를 얻게 된다.This application has no explicit mapping for /error, so you are seeing this as a fallback.There was an unexpected error (type=Bad Request, status=400).Validation failed for object='formDto'. Error count: 1org.springframework.web.method.annotation.ModelAttributeMethodProcessor$1: org.springframework.valida..