jpetstore(Spring with ibatis)新用户注册学习

jpetstore(Spring with ibatis)新用户注册学习
 
1 <!-- web.xml-- -->
2 < servlet >
3    < servlet-name > petstore </ servlet-name >
4    < servlet-class > org.springframework.web.servlet.DispatcherServlet
5    </ servlet-class >
6    < load-on-startup > 2 </ load-on-startup >
7   </ servlet >
8
1 <!-- petstroe-servlet.xml-- -->
2 < bean  name ="/shop/newAccount.do"  
3 class ="org.springframework.samples.jpetstore.web.spring.AccountFormController" >
4    < property  name ="petStore"  ref ="petStore" />
5    < property  name ="validator"  ref ="accountValidator" />
6    < property  name ="successView"  value ="index" />
7   </ bean >

 1 <!-- applicationContext.xml -->
 2 < bean  id ="petStore"  parent ="baseTransactionProxy" >
 3          < property  name ="target" >
 4              < bean 
 5 class ="org.springframework.samples.jpetstore.domain.logic.PetStoreImpl" >
 6                  < property  name ="accountDao"  ref ="accountDao" />
 7                  < property  name ="categoryDao"  ref ="categoryDao" />
 8                  < property  name ="productDao"  ref ="productDao" />
 9                  < property  name ="itemDao"  ref ="itemDao" />
10                  < property  name ="orderDao"  ref ="orderDao" />
11              </ bean >
12          </ property >

你可能感兴趣的:(jpetstore(Spring with ibatis)新用户注册学习)