id of bean is a unique in container for each bean . id is basically used to access the bean anywhere. but it not accept the url matching like in spring framework. name is partially work like id but it can accept url matching.
example-
<bean name="/*.html" class="com.test.handler">
In web application when url contain this pattern it call that class. The id is not preferred for that feature. It caught a exception at the run time.
example-
<bean name="/*.html" class="com.test.handler">
In web application when url contain this pattern it call that class. The id is not preferred for that feature. It caught a exception at the run time.
For Further Reading,
0 comments:
Post a Comment