|
|
@@ -6,15 +6,13 @@ import com.example.hotel.vo.UserForm;
|
|
|
import com.example.hotel.vo.ResponseVO;
|
|
|
import com.example.hotel.vo.UserVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpSession;
|
|
|
|
|
|
|
|
|
@RestController()
|
|
|
+@RequestMapping("/api")
|
|
|
public class AccountController {
|
|
|
private final static String ACCOUNT_INFO_ERROR="用户名或密码错误";
|
|
|
@Autowired
|
|
|
@@ -42,4 +40,6 @@ public class AccountController {
|
|
|
session.removeAttribute(InterceptorConfiguration.SESSION_KEY);
|
|
|
return "index";
|
|
|
}
|
|
|
+
|
|
|
+ //@PostMapping("/api/hotel/{")
|
|
|
}
|