Contents
see List작성일 2016. 02. 16.
@ControllerAdvice
public class JsonpAdvice extends AbstractJsonpResponseBodyAdvice {
public JsonpAdvice() {
super("callback");
}
}
@RequestMapping(value = "${hdl.comm.login.loginCheck.ajax}",method=RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public Map<String,Object> loginCheckAjax(
ModelMap model
,@RequestParam("userId") String userId
) {
return loginService.loginCheckAjax(model,userId);
}
function callback1(data1){
if(data1.state == null){
alert("존재하지 않는 계정입니다.");
}else{
var codeValue = data1.state.codeValue;
if(codeValue == 1){
$("#login_form_submit").submit();
}else{
alert(data1.state.codeNote);
}
}
}
function checkLoginState(){
var userId = $("#userId").val();
var userPass = $("#userPasswd").val();
if(userId == ""){
alert("ID를 입력하십시오.");
return;
}else if(userPass == ""){
alert("Password를 입력하십시오.");
return;
}
$.ajax({
type : "POST",
url : '<c:url value="${checkLoginAjax}" />',
data : {
userId : userId
},
dataType : "jsonp",
jsonpCallback : "callback1",
success : function(d){
}
});
}
spring
| No | 작성일 | Title |
|---|---|---|
| 2193 | 2026. 02. 11. | Spring WebSocket과 STOMP로 실시간 채팅 구현 |
| 2192 | 2026. 02. 11. | Spring Boot 3.5 신기능 완전 정리 |
| 2131 | 2026. 02. 11. | Testcontainers로 Spring 통합 테스트 자동화 |
| 2130 | 2026. 02. 11. | Spring Batch 5.x 대용량 데이터 처리 패턴 |
| 2129 | 2026. 02. 11. | Spring Modulith: 모듈러 모놀리스 아키텍처 |
| 2128 | 2026. 02. 11. | Spring Data JPA 쿼리 최적화 고급 기법 |
| 2127 | 2026. 02. 11. | GraalVM Native Image와 Spring Boot AOT 컴파일 |
| 2126 | 2026. 02. 11. | Spring Cloud Gateway로 API Gateway 구축하기 |
| 2125 | 2026. 02. 11. | Spring Security 6.x OAuth2/OIDC 실전 구현 |
| 2124 | 2026. 02. 11. | Virtual Thread와 Spring WebFlux 성능 비교 |