I am new to spring framework....while searching on google..I found few examples which has @RequestMapping annoted at the class level and few examples showing it at menthod level
When to use class level RequestMapping and menthod level RequestMapping annotation...can anybody explain me difference between class level RequestMapping and method level RequestMapping ..??
so I am little bit confused about their application at :
a) Class level
b) Method level
Also I found some @Requestmapping
with type :GET/Post,whereas some examples doesn't have type parameter.
Which approach is better ..??
Is newer versions(>Spring 2.5) don't need parameter type for request mapping ???
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…