SpringFramework_1001

Last modified by superadmin on 2018-01-12 20:19

Back to Item Set

<p/>
<!-- START TestItem -->
<p/>
<div class="TestItem">
<div class="TestItemQuestion">1001 Question:\

Select correct ways of initializing Spring application context.

</div>

Select 2 correct answer(s)!

<p/>
<ol class="MTestItemChoices" type='A'>
<li>

{code:java}
ApplicationContext appCtxt =
new FileSystemApplicationContext("/applicationContext.xml");
{code}

</li>
<li>

{code:java}
ApplicationContext context =
new ClassPathXmlApplicationContext(
new String[] {"springConfig.xml", "servicesConfig.xml"});
{code}

</li>
<li>

{code:java}
ApplicationContext appCtxt =
new ClassPathXmlApplicationContext("/applicationContext.xml");
{code}

</li>
<li>

{code:java}
ApplicationContext ctx =
new AnnotationApplicationContext(AppConfig.class);
{code}

</li>
</ol>
<p/>
<div class="TestItemSkill"><!--$skillid>Skill: $skilltitle</div>
<p/>
</div>
<!-- END MTestItem -->
<p/>
<p/>


{{/velocity}}

Tags:
Created by Alina Vasiljeva on 2012-12-29 18:11
    
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4 - Documentation