|
|
@@ -6,8 +6,8 @@ import com.uas.eis.core.support.TokenProperties;
|
|
|
import com.uas.eis.sdk.dto.UserReq;
|
|
|
import com.uas.eis.service.UserService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
@@ -22,7 +22,7 @@ public class LoginWorldController {
|
|
|
private static String base64Security = tokenConfig.get("SECURITY_KEY");
|
|
|
|
|
|
|
|
|
- @RequestMapping("/login")
|
|
|
+ @PostMapping("/login")
|
|
|
public Result login(@RequestBody UserReq userReq){
|
|
|
Map<String, String> map = new HashMap();
|
|
|
String username = userReq.getUsername();
|