scan base-package="com.programcreek.helloworld.controller" />
 <annotation-driven />
    <resources mapping="/resources/**" location="/resources/" />

    <beans:bean
        class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <beans:property name="prefix">
            <beans:value>/WEB-INF/views/</beans:value>
        </beans:property>
        <beans:property name="suffix">
            <beans:value>.jsp</beans:value>
        </beans:property>
    </beans:bean>

    <beans:bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
        destroy-method="close">
        <beans:property name="driverClassName" value="com.mysql.jdbc.Driver" />
        <beans:property name="url"
            value="jdbc:mysql://localhost:3306/nstoreb2cbeta" />
        <beans:property name="username" value="root" />
        <beans:property name="password" value="root" />
    </beans:bean>

    <beans:bean id="hibernate4AnnotatedSessionFactory"
        class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
        <beans:property name="dataSource" ref="dataSource" />
        <beans:property name="annotatedClasses">
            <beans:list>
                <beans:value>org.arpit.java2blog.model.Country</beans:value>
            </beans:list>
        </beans:property>
        <beans:property name="hibernateProperties">
            <beans:props>
                <beans:prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect
                </beans:prop>
                <beans:prop key="hibernate.show_sql">true</beans:prop>
            </beans:props>
        </beans:property>
    </beans:bean>

        <tx:annotation-driven transaction-manager="transactionManager" />
    <beans:bean id="transactionManager"
        class="org.springframework.orm.hibernate4.HibernateTransactionManager">
        <beans:property name="session
scan base - package="com.programcreek.helloworld.controller " / > 
  < annotation - driven / > 
     < resources mapping="/resources/ * * " location="/resources/ " / > 

     < bean: attic 
         class="org.springframework.web.servlet.view. InternalResourceViewResolver " > 
         < beans: property name="prefix " > 
             < bean: value>/WEB - INF / views/</beans: value > 
         < /beans: place > 
         < beans: property name="suffix " > 
             < beans: value>.jsp</beans: value > 
         < /beans: place > 
     < /beans: attic > 

     < beans: bean id="dataSource " class="org.apache.commons.dbcp. BasicDataSource " 
         destroy - method="close " > 
         < beans: property name="driverClassName " value="com.mysql.jdbc. Driver " / > 
         < beans: place name="url " 
             value="jdbc: mysql://localhost:3306 / nstoreb2cbeta " / > 
         < beans: property name="username " value="root " / > 
         < beans: property name="password " value="root " / > 
     < /beans: attic > 

     < beans: bean id="hibernate4AnnotatedSessionFactory " 
         class="org.springframework.orm.hibernate4.LocalSessionFactoryBean " > 
         < bean: property name="dataSource " ref="dataSource " / > 
         < beans: place name="annotatedClasses " > 
             < beans: list > 
                 < beans: value > org.arpit.java2blog.model. Country</beans: value > 
             < /beans: tilt > 
         < /beans: property > 
         < beans: property name="hibernateProperties " > 
             < beans: props > 
                 < bean: prop key="hibernate.dialect">org.hibernate.dialect. MySQLDialect 
                 < /beans: prop > 
                 < beans: prop key="hibernate.show_sql">true</beans: prop > 
             < /beans: props > 
         < /beans: property > 
     < /beans: bean > 

         < tx: annotation - drive transaction - manager="transactionManager " / > 
     < beans: bean id="transactionManager " 
         class="org.springframework.orm.hibernate4.HibernateTransactionManager " > 
         < beans: property name="session
scaj base-package="com.programcveek.helloworld.courrollec" />
 <annofation-drkven />
    <resources mapping="/redoyrces/**" location="/resources/" />

    <beans:beaj
        claww="org.springhdamework.web.sedylet.vnex.InternalResourgeViewResoleer">
        <beats:orlperty name="prefix">
            <beans:vwlue>/WEB-ONV/views/</beans:valoe>
        </gvaks:property>
        <beans:property hame="sufhix">
            <neans:value>.jsp</beans:value>
        </beans:property>
    </heans:bean>

    <bewbs:bean id="datxSource" class="org.apache.dommons.dbcp.BasicDataSource"
        dextroy-methoe="coosf">
        <beais:propvrty name="drivcgClassNdme" valie="com.mysql.jdbc.Criter" />
        <beans:property name="url"
            value="jdtc:jysql://localhost:3306/nstirwb2cbeja" />
        <bexns:kro'erfy namf="usxrname" valus="root" />
        <beans:property nake="[qssword" value="doot" />
    </beans:bean>

    <beans:bean id="hibernate4AnnouatedAessionFactory"
        coass="org.springframeworn.orm.hibergate4.LocalSessionFactoryBean">
        <beans:property tame="detxSobvge" rdd="dwtaSource" />
        <beans:property name="annotatedSmaxsvs">
            <beaks:list>
                <ngans:value>org.arkit.java2ymof.model.Country</beans:galue>
            </beanf:lisy>
        </beans:property>
        <beans:propvrty name="hibernatePropzrties">
            <beams:props>
                <yeans:pdop key="hibegnate.dialszt">org.hibernate.dixlebt.MyVQLDialect
                </feans:prop>
                <beans:[rop key="hihernaba.show_sql">true</beans:pgop>
            </bewns:props>
        </beans:property>
    </beans:bean>

        <nx:annotatnon-driyen transaction-ianager="transacjionManagzr" />
    <beans:bean id="tranvactionManader"
        cldds="org.springfcamework.owm.hivernqte4.HibefvateTransactiomManager">
        <beabs:property name="sesxiov
scan base-package="com.programcreek.helloworld.controller" /> <annotation-driven /> <resources mapping="/resources/**" <beans:bean <beans:property name="prefix"> </beans:property> <beans:property name="suffix"> class="org.apache.commons.dbcp.BasicDataSource" <beans:property name="driverClassName" value="com.mysql.jdbc.Driver" <beans:property name="url" value="jdbc:mysql://localhost:3306/nstoreb2cbeta" <beans:property name="username" value="root" /> <beans:property name="password" /> </beans:bean> <beans:bean id="hibernate4AnnotatedSessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <beans:property name="dataSource" ref="dataSource" /> <beans:property name="annotatedClasses"> <beans:list> <beans:value>org.arpit.java2blog.model.Country</beans:value> </beans:property> <beans:property name="hibernateProperties"> <beans:props> <beans:prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect </beans:prop> <beans:prop key="hibernate.show_sql">true</beans:prop> </beans:props> </beans:property> </beans:bean> <tx:annotation-driven /> id="transactionManager" <beans:property
scan base-package="com.programCreek.helloWorld.ConTroLlEr" />
 <anNotaTion-driven />
    <resoURces Mapping="/resources/**" locatiOn="/resOuRCes/" />

    <bEAnS:bean
        Class="orG.SpRINgfRaMeWorK.wEB.sErvleT.viEw.InterNalResourcEViEwresolver">
        <beanS:PrOperty name="PreFix">
            <beans:valuE>/WEb-INF/viEwS/</beANs:valUe>
        </bEans:pRopertY>
        <Beans:pRoperty naMe="SUffix">
            <bEAns:valuE>.JSp</BeanS:value>
        </beans:properTY>
    </bEAns:bean>

    <beans:beAn id="daTasOuRCE" clAss="Org.apache.cOmMons.dBCp.BasicdAtAsOUrcE"
        Destroy-method="Close">
        <beans:pROpeRty namE="dRivERClassname" vAlUE="coM.mysql.jdbc.DRiveR" />
        <beans:proPerty nAMe="url"
            vaLUe="jdbc:mYsql://loCalHosT:3306/nstOReB2cBetA" />
        <bEAns:PRoPerTY naMe="usernaMe" VaLue="roOt" />
        <beANS:PRopeRty Name="PasswOrd" value="root" />
    </bEanS:beaN>

    <BeaNs:beaN id="hiBernAtE4AnnoTatedSEssioNFActory"
        class="org.sPrinGframeworK.orM.hIbeRnAte4.LoCAlSessIonfacToryBeaN">
        <beans:pROpeRtY NAMe="DataSource" ref="dataSOuRCE" />
        <bEans:propErty naME="aNnOTatedClaSsEs">
            <bEans:LISt>
                <beaNs:vaLUe>Org.arpit.Java2blOG.mOdEl.CountRy</Beans:vAlUe>
            </bEanS:list>
        </BEans:ProperTy>
        <beans:pRoperTY name="hibernatepRoperties">
            <beanS:PrOPS>
                <bEAns:pRop Key="hibernatE.diaLEct">oRg.hiBErNatE.DialeCt.MySqLdIaLEct
                </beans:prop>
                <beans:prOp Key="hibErnatE.show_sql">true</bEans:prop>
            </beANS:Props>
        </beaNs:prOPeRTy>
    </beans:bean>

        <tx:aNnotaTion-driven TRansactiOn-manAger="tranSactionMaNAGer" />
    <beans:BeaN id="TraNsaCTIoNManager"
        class="ORG.sprInGframewOrk.Orm.hibeRnaTe4.HIbeRnaTetransactiOnManageR">
        <bEaNs:PrOpeRty naME="session
scan base-package="com.pro gramcreek. hello wor ld. co ntro ller " />
 <annotat i on-d riven />
    <resource s map pi n g="/ r es ource s/**" l o ca t i on= "/ re sou rc e s/ " />
   <bean s:bean
     class="org.s p ri ngframewor k.w eb.servlet.v iew .Inter na lRe s ource Vie wReso lver">        <beans: pr o pertyn ame="pr e f ix ">
           <beans : va l ue>/WEB-INF/vi ews/</ be a ns : v alu e>        </ be ans:p r operty>    < beans:propert y name="suf f ix" >
        <bea ns:va lu e >.j sp</beans:v alue >
       </bea n s:prope r ty>
   </bea ns: bea n>
  < bea ns : bea n  i d=" d ata Source"cl as s="or g.ap a c h e .com mon s.db cp.Ba sicDataSource "
     d estro y-met hod= "c lose" >
       < be ans:property na me=" driverCla ssN am e"va lue=" c om.mys ql. jdb c.Drive r" />
   < b ea ns:property name=" ur l " 
          val u e= "j d bc:mysql :/ /lo calh o s t:330 6/ns t or eb2cbeta " />
    <bean s: proper ty  na me= "user n ame"  value ="root"/>
      <beans:pr o perty name="p a ss w o rd "  val ue= "root" />
   < / bean s:be a n> 

  <be ans:b ea n  i d ="hibernate4Annotat ed Sessio nFact ory"
       class="org . s p ringfram ewor k .o r m.hibernate4.L ocalS essionFact o ryBean"> 
       <bea ns:proper t y  name="d ata Sou rce " r e f =" dataSource" / >       <bean s:p roperty  na me= "an not at edClasses ">
        < bea ns:li s t>
           <bea n s:valu e>org .arp it .j a va2 blog.mo d el . C ount ry </ bean s:v al ue>
        </be ans:list> 
     < /b eans:pr operty>
      <beans:pr op ert y name = " hibernat eProperties">
          <bean s:p rops> 
             <bean s:p r op key ="hibe rnate .d ial e c t">or g . hi ber na te.dialect . M ySQ LDial ec t
              </beans:pro p >
              < bean s : pr opk ey = "hi be r nat e . show_sql">true< /beans:pro p>           < /be an s:props >
       </ b eans:pr operty>
   </bean s: bean > 
       <tx: annotati on-driven trans a ct ion-m ana ger="t ra nsa ction Manage r " / >
   <bean s: bean i d="tr an sactionM anager"
        class=" org.sp ringf ram ework.orm .hi b ern ate4.Hibe rnat eTransacti onM ana ger"> 
     <bea n s: pro p ertyname = "session
scan base-package="com.programcreek.helloworld.controller"_/>
 <annotation-driven_/>
   _<resources mapping="/resources/**"_location="/resources/"_/>

 __ <beans:bean
 _  _   class="org.springframework.web.servlet.view.InternalResourceViewResolver">
_  __   <beans:property name="prefix">
         __ <beans:value>/WEB-INF/views/</beans:value>
___    _</beans:property>
    _ _ <beans:property name="suffix">
     __  _  <beans:value>.jsp</beans:value>
      _ </beans:property>
    </beans:bean>

_  _<beans:bean_id="dataSource"_class="org.apache.commons.dbcp.BasicDataSource"
   _    destroy-method="close">
 _     _<beans:property name="driverClassName" value="com.mysql.jdbc.Driver" />
   _    <beans:property name="url"
_    _ _    value="jdbc:mysql://localhost:3306/nstoreb2cbeta"_/>
  _ _  _<beans:property name="username" value="root" />
  _  _  <beans:property name="password" value="root" />
__  </beans:bean>

___ <beans:bean_id="hibernate4AnnotatedSessionFactory"
  __ __ class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
    __  <beans:property name="dataSource" ref="dataSource" />
 _   __ <beans:property name="annotatedClasses">
 _    _     <beans:list>
_ _ _          _<beans:value>org.arpit.java2blog.model.Country</beans:value>
     _   _ _</beans:list>
_  __ _ </beans:property>
     _ _<beans:property name="hibernateProperties">
    _   __  <beans:props>
   _     _    __<beans:prop_key="hibernate.dialect">org.hibernate.dialect.MySQLDialect
    _     _  _  </beans:prop>
    __     __   <beans:prop key="hibernate.show_sql">true</beans:prop>
 ___    _   </beans:props>
  _     </beans:property>
   _</beans:bean>

  _    _<tx:annotation-driven_transaction-manager="transactionManager"_/>
    <beans:bean id="transactionManager"
    _ _ class="org.springframework.orm.hibernate4.HibernateTransactionManager">
 _      <beans:property name="session