Below are questions related to reading the Spring reference, please help.
(1) Do I need to manually create an ApplicationContext? Do I need a second instance of AplicationContext?
(2) We have the following configuration commands:
<context:annotation-config/>
<context:component-scan base-package=".."/>
<mvc:annotation-driven/>
Do these instructions duplicate themselves? In what cases, yes, in which no?
(3) I am a little stuck with all of these ways Spring presents for converting from string to object: PropertyEditor, Conversions, Formatting .. Here is a simple example: I have a Spring MVC controller that processes some POST request. This request is the result of filling out some form. A form is a web representation of an object. Thus, provided that the user submits a new project form. This form has a date field and a manager name field that should be selected from the list of existing managers. The entered date must be converted to the Date property of the Project object, and the name of the manager must be converted to the Manager property created or under this name (i.e. I want to add Manager to its project). What should I use in this case? Property editors, formatting, something else?
(4) , , @interface, , Spring ?
, , ? , , - ?
(5) Spring aop aspectj.jar: XML ( - ). " : org/aspectj/weaver/BCException".
, Spring aspectJ