Searching a word in a String(s)

Searching for a word(s) in String(s) is a very common coding problem which we face day to day. A usual solution which comes to our mind is parsing the entire string. It becomes more time consuming if there are a bunch of strings. A simple solution to this is this : Given a word say "word" and we …

Spring Annotations : One line description to make sense out of them

@Autowired : Binding one class with another by type@Resource : Binding one class with another by name @RequestMapping : To map url with function/class@RequestHeader : To map parameter to header variable@modelAttribute : To map parameter with attribute present in model@RequestParam : To map parameter with attribute present in request@SessionAttribute : To map parameter with attribute present …