@RequestMapping("/hello/{userName}/{country}")
public methodName(@PathVariable Map<String,String> map){
String userName = map.get("userName");
String country = map.get("country");
}
and below code in dispatcher-servelet:
<mvc:annotation-driven/>
p
exists in the array such that the number of integers greater than p
in the array equals to p
1
else return -1
.public static String getBase64Decoded(String toDecode) throws UnsupportedEncodingException{
return new String(Base64.getDecoder().decode(toDecode.getBytes(CHAR_ENCODING)), Constants.CHAR_ENCODING);
}
public static String getBase64Encoded(String toEncode) throws UnsupportedEncodingException{
return new String(Base64.getEncoder().encode(toEncode.getBytes(CHAR_ENCODING)), Constants.CHAR_ENCODING);
}
public static final String CHAR_ENCODING = "ISO-8859-1";
public static byte[] getBytesDecoded(String toDecode) throws UnsupportedEncodingException{
return Base64.getDecoder().decode(toDecode.getBytes(CHAR_ENCODING));
}
1) 𝐁𝐞𝐜𝐨𝐦𝐞 𝐌𝐚𝐬𝐭𝐞𝐫 𝐢𝐧 𝐋𝐢𝐧𝐤𝐞𝐝 𝐋𝐢𝐬𝐭: https://lnkd.in/gXQux4zj 2) 𝐀𝐥𝐥 𝐭𝐲𝐩𝐞𝐬 𝐨𝐟 𝐓𝐫𝐞𝐞 𝐓𝐫𝐚𝐯𝐞𝐫𝐬𝐚𝐥𝐬...