我得到一个成功的字符串作为回应。
请提供答案,仅供参考 @RestController
.
@RestController
// here is method call. verify_success,verify_fail are html pages
@PreAuthorize("permitAll()")
@Operation(summary = "email_Verification", tags = { "auth" })
@RequestMapping(value = "/verify", method = RequestMethod.GET)
public String verifyUser(@Param("code") String code) {
if (emailService.verify(code)) {
return "verify_success";
//i want html response instead of string
} else {
return "verify_fail";
//i want html response instead of string
}
}
1条答案
按热度按时间izj3ouym1#