首先,在jsp前面加入 Xml代码
|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
我半天没…
首先,在jsp前面加入 Xml代码
|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
我半天没…
http://www.syscy.com/articleview/2009-6-2/article_view_…
用powerdesigner自动建数据库的时候,mysql的表类型是myisam类型,所以反正的时候,无法生成…
Display Tag Lib 显示表格标签 display:table class=”its&#…
下载: http://www.baremetalsoft.com/baretail/ 介绍: http://w…
http://xieruilin.iteye.com/blog/716031 [crayon-6a88309c…
SiteMesh学习入门 http://www.java3z.com/cwbwebhome/article/a…
http://zywang.iteye.com/blog/974226 第一种 [crayon-6a88309…
为了实现DAO组件,Spring提供了大量的XxxDaoSupport类,这些DAO支持类对于实现DAO组件有…
Log4Jdbc测试例子 http://bbs.chinaunix.net/viewthread.php?ti…
参数说明参阅: http://www.codeif.com/topic/291 log4j每天产生一个日志文件…
applicationContext.xml
|
1 2 3 4 5 6 |
<property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.show_sql">true</prop> </props> </property> |
…
http://blog.sina.com.cn/s/blog_72b4c81f0100rjy8.html 1….
http://blog.163.com/xiaokangzhijia@126/blog/static/1659…
MyEclipse、Struts2.1、Spring3.0、Hibernate3.3框架整合详细图解: 下载:…
通过注解注入方式 1. 在applicationContext.xml定义 [crayon-6a88309c5…
1. Action实现implements ServletRequestAware,并实现setServlet…
http://blog.csdn.net/fdgaq/archive/2010/05/03/5552561.a…
1. spring.jar 是包含有完整发布模块的单个jar 包。这个在~3.03之后不再提供!想要该包的同学…
http://www.mkyong.com/spring/spring-jdbctemplate-jdbcda…
引用 http://iscode.iteye.com/blog/628548 的方法 1.关掉myeclips…
修改环境变量并立即生效的VBS代码。 http://www.cnblogs.com/shanyou/archi…
在网上找到的,简洁实用。 http://blog.csdn.net/trwhoya/archive/2009/…
applicationContext.xml
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="driverClass" value="com.mysql.jdbc.Driver"/> <property name="jdbcUrl" value="jdbc:mysql://localhost:3306/asl_daily_report" /> <property name="user" value="root" /> <property name="password" value="" /> <property name="maxPoolSize" value="40"/> <property name="minPoolSize" value="1"/> <property name="initialPoolSize" value="1"/> <property name="maxIdleTime" value="20"/> </bean> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource"/> </bean> <bean id="newsDao" class="org.crazyit.app.dao.impl.NewsDaoImpl"> <property name="ds" ref="dataSource"/> </bean> <bean id="newsDaoTrans" class= "org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager" ref="transactionManager"/> <property name="target" ref="newsDao"/> <property name="transactionAttributes"> <props> <prop key="*">PROPAGATION_REQUIRED,-DataAccessException</prop> </props> </property> </bean> |
…
http://san-yun.iteye.com/blog/494405 “事务隔离级别(transactio…
我碰到这个问题,但是这篇文章并没有帮我解决 WordPress中文Tags、中文地址404错误其实就是为静态的…
今天用Google查看收录情况www.网站.com的时候发现都是首页 关键文章点进去都是首页 于是深入思考 觉…
1. 今天看了怎么弄AOP,跟着别人写了半天,是在自己一些代码上写的。好不容写完了,但运行一下,咋后台什么东西…
下面四个标注用来定义 bean, 自动根据 bean 的类名生成一个首字母小写的 bean [crayon-6…
参考零配置及惯例代替配置:http://www.blogjava.net/easyjf/archive/200…
MyTestInstance类
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
package com.app.impl; public class MyTestInstance { private String testMessage; public MyTestInstance(){ System.out.println("初始化我的MyTestInstance类."); } public void info(){ System.out.println(this.getTestMessage()); } public String getTestMessage() { return testMessage; } public void setTestMessage(String testMessage) { this.testMessage = testMessage; } } |
TestCr…
当前分辨率: 主题推荐的顶部图像尺寸为1920 × 721像素 主题推荐的顶部图像尺寸为1600 × 601像…
欢迎使用WordPress。这是您的第一篇文章。