Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.ResponseStatus; | ... | @@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.ResponseStatus; |
| 18 | import org.springframework.web.bind.annotation.RestController; | 18 | import org.springframework.web.bind.annotation.RestController; |
| 19 | 19 | ||
| 20 | import javax.validation.Valid; | 20 | import javax.validation.Valid; |
| 21 | +import java.security.NoSuchAlgorithmException; | ||
| 21 | 22 | ||
| 22 | @Api(tags = "登陆") | 23 | @Api(tags = "登陆") |
| 23 | @ApiSupport(order = -1) | 24 | @ApiSupport(order = -1) |
| ... | @@ -32,7 +33,7 @@ public class LoginController { | ... | @@ -32,7 +33,7 @@ public class LoginController { |
| 32 | @ApiOperation(value = "登陆") | 33 | @ApiOperation(value = "登陆") |
| 33 | @PostMapping("/login") | 34 | @PostMapping("/login") |
| 34 | @ResponseStatus(HttpStatus.OK) | 35 | @ResponseStatus(HttpStatus.OK) |
| 35 | - public SaTokenInfo login(@Valid @RequestBody PermissionDTO.LoginDto loginDto) { | 36 | + public SaTokenInfo login(@Valid @RequestBody PermissionDTO.LoginDto loginDto) throws NoSuchAlgorithmException { |
| 36 | return loginService.login(loginDto); | 37 | return loginService.login(loginDto); |
| 37 | } | 38 | } |
| 38 | } | 39 | } | ... | ... |
-
Please register or login to post a comment