خرید بک لینک

Vote count: 0

In Spring MVC i have

@RequestMapping({ "foo", "bar" })
public String method() {...

This method works with mappings "foo" or "bar". How to know in a method which one of two mappings worked? Like:

System.out.println("Your mapping is" + mapping)

gets me

Your mapping is bar

@PathVariable is unsuitable. Or maybe set restrictions on the possible values? How I can do it?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 26 ارديبهشت 1395 ساعت: 2:24

صفحه بندی