What is the syntax to add a bean in the spring application?
Answer / Yatendra Kumar Nagar
The syntax to add a bean in Spring Application Context is as follows: <bean id="<bean-id>" class="<fully-qualified-class-name>" />. The bean can also be defined using XML namespace aliases or Java-based configuration.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is spring jdbctemplate thread safe?
What is front controller in spring?
What is the default autowire in spring?
What is context how is it used?
What is difference between @inject and @autowired?
When singleton beans are created in spring?
What are the advantages of dependency injection in spring?
Why is lazy initialized?
What do you mean by spring ioc container?
Why do we need spring aop?
What namedparameterjdbctemplate in spring?
What do you mean by proxy in spring framework?