This is my get method in spring boot
@GetMapping(value="/generateotp/{username}")
public String generateOTP(@PathVariable(value = "username") String userName) {
loginService.generateOTP(userName);
return "OTP Generated";
}
From my rest client I'm hitting with Url
http://localhost:8080/generateotp/shaik.moulali
But It is taking only shaik, it is neglecting after '.' part. But when I'm giving Url like http://localhost:8080/generateotp/shaikmoulali
. It is accepting. Can I know the reason.