tapestry5中文教程 实例demo

   如果你是tapestry5的大师,请略过,此篇文字

推荐:很详细的教程 :
http://wenku.baidu.com/link?url=Dbx5nrJ-HniRjqzX4UvKkTtD1kqJ3mO8-CaxKxa2aDGa4dmUUliYl2pw8nIFL2Vvgqj249uNyDvchRaRH6CsE0OCcowY_SK5KPyq2Y6GDvi

看着,教程,就可以跑通的tapestry5教程 教程是oracle

亲自试用成功!

我使用的是:spring+tapestry5+mysql

下面是mysql的数据库连接配置:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
 xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
 xmlns:context="http://www.springframework.org/schema/context"
 xsi:schemaLocation="http://www.springframework.org/schema/beans
 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
      http://www.springframework.org/schema/tx
 http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
      http://www.springframework.org/schema/aop
 http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
 http://www.springframework.org/schema/context
 http://www.springframework.org/schema/context/spring-context-2.5.xsd
 ">
 <bean id="CustDao" class="com.xm.dao.impl.CustDaoImpl">
  <property name="jdbcTemplate" ref="jdbcTemplate"/>
 </bean>
 <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
  <property name="dataSource" ref="dataSource"/>
 </bean>
 <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
  <property name="url" value="jdbc:mysql://127.0.0.1:3306/wo?useUnicode=true&amp;characterEncoding=UTF-8"/>  <property name="username" value="root"/>
  <property name="password" value="123"/>
 </bean>  
</beans>

猜你喜欢

转载自cherryqq.iteye.com/blog/2113883
今日推荐