Всем привет.
- Хотел узнать для чего нужен такой элемент metadata-complete в web xml или web fragments?
Нашол обьяснение для такого web xml.. Непонятна выделенная строка.
The web.xml element metadata-complete with a value of true will ignore any other configuration details such as annotations or web fragments. If the value of this is true or this element is omitted, it will get the configuration details from web fragments and annotations
. However, if any of the web fragment has a value of false for element metadata-complete, the web fragment and its annotations will be ignored.
Сначало вроде всё понятно.
Если такой элемент присваивает значение True для web xml то все другие конфигурации как аннотации и веб фрагменты будут проигнорированны..
Потом пишется - Если такое значение true или такой элемент опушен, web xml достанет конфигурационные детали от web fragments и annotations.
Материал взят из Syntax and rules for defining web fragments.
Непонятно что именно происходит при присваивании значения true для metadata-complete ?
=========================================================================
Абсолютно непонятно идея про кофнигурации от множество дескрипторов.
6,7 по верхней ссылке "Syntax and rules"!
Что значит конфигурации от дескрипторов будут обьеденены ?
Configurations from multiple descriptors will be merged (web.xml or fragments).
If the element can take multiple values, the value will be a union
Если элемент принимает множество значений, они обьединятся ?? Как это понимать?
and if there is a conflict between a web fragment and web.xml, web.xml will take precedence. However, if there is a conflict between two fragments, error is raised.
*Elements like welcome-file-list and
locale-encoding-mapping-list will have their values merged.*
**Непонятна это строка - значения будут слиты, всмысле ??**
For filters and servlets, the value declared in the DD/fragment will only override the value of any duplicate named parameters, and rest will be merged. О каких значениях идёт речь ?? Для фильтров и сервлетов задаются значения ?
The url-pattern and DispatcherType, annotation value is strictly overridden by DD/fragment without any merge.
Elements like session-config, jsp-config and login-config may only appear at most once across web.xml and all web fragments.
and may only be declared once for the given or extension respectively or an error will be raised.
Если кто сможет дать ссылку на ресурс обьясняющий ту же тему буду рад..