ERROR/SQL

[spring]Failed to load resource: the server responded with a status of 404 ()

onlyun 2022. 3. 20. 04:44

 

 

웹 게시판 만드는 작업 중

회원가입 입력 폼 완성하고, js까지 했는데 오류 뜸.

 

Failed to load resource: the server responded with a status of 404 ()

 

구글링해보니 경로 설정 잘못이라고

경로를 정말 잘못 설정했거나, 높은 확률로 오타.

 

확인해보니,

.done(function(res){
	if(res == "success"){
		alert("회원가입을 축하합니다.");
		location.href="/memeber/login"
	}else if(res == "fail"){
		alert("아이디 중복 확인 해주세요.")
		$("#id").val();
	}
})

경로 폴더명 오타였음. member인데 memeber라고 썼음.

 

.done(function(res){
	if(res == "success"){
		alert("회원가입을 축하합니다.");
		location.href="/member/login"
	}else if(res == "fail"){
		alert("아이디 중복 확인 해주세요.")
		$("#id").val();
	}
})

수정하니까 페이지 제대로 찾음.