CHENYIZONG 6 лет назад
Родитель
Сommit
b7a812d66a

+ 4 - 4
src/main/java/com/example/hotel/controller/user/AccountController.java

@@ -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/{")
 }