上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 一直使用struts2的request,把自己的思维限制死了,今天使用spring-mvc时,怎么获取request都是null,最后多方查找原因,终于发现了解决方法1. 在web.xml配置监听<listener> <listener-class>org.springframework.web.context.request.RequestContextListener </listener-class> </listener>2. 后台获取代码HttpServletRequest request = ((ServletRequestAttri 阅读全文
posted @ 2013-03-07 10:49 东师理想--周枫 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 先下载 kaptcha-2.3.2.jar 包,maven获取代码:<!-- 验证码 --> <dependency> <groupId>com.google.code</groupId> <artifactId>kaptcha</artifactId> <version>2.3.2</version> </dependency>web.xml增加如下代码<!-- google的验证码插件 --> <servlet> <servlet-name>Kap 阅读全文
posted @ 2013-03-07 09:33 东师理想--周枫 阅读(672) 评论(0) 推荐(0) 编辑
摘要: 转:spring security3 初探http://yzxqml.iteye.com/blog/1756106现在很多企业和开发团队都使用了SSH2(Struts 2 +Spring 2.5 +Hibernate)框架来进行开发, 我们或许已经习惯了强大的Spring Framework 全局配置管理,不可否认,Sping是一个很优秀的开源框架,但是由于Spring3.0版本后强大的的注解式bean的诞生,Spring MVC框架这匹黑马正悄然杀起,但今天Spring MVC不是主角,今天我和大家分享一个同样隶属于SpringSource的安全框架——Spring Security,下面的 阅读全文
posted @ 2013-03-06 09:32 东师理想--周枫 阅读(707) 评论(0) 推荐(0) 编辑
摘要: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.mchange.v2.c3p0.ComboPooledDataSource] for bean with name 'dataSource' defined in URL [file:/D:/workspaces/lxyy_spring/WebRoot/WEB-INF/classes/spring-mvc.xml]; nested exception is java.lang.ClassNotFoundEx 阅读全文
posted @ 2013-03-01 09:45 东师理想--周枫 阅读(5019) 评论(0) 推荐(0) 编辑
摘要: 调试框架报错org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [file:/D:/workspaces/lxyy_spring/WebRoot/WEB-INF/classes/spring-mvc.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor at org... 阅读全文
posted @ 2013-03-01 09:40 东师理想--周枫 阅读(13439) 评论(1) 推荐(0) 编辑
摘要: spring-framework-reference.pdfspring-framework-reference.html 文件夹http://58.253.94.135/gdown_group448/M00/1F/15/cWmPnVEut6YAAAAAADdFlTJWRZM0407578/html.rar?k=WOrwSVYNRhQnFku10Ap7EQ&t=1362016991&u=1032499471-27619823-eiigodzb&s=307200&file=html.rarspring-framework-3.2.1.RELEASE或者大家直接去s 阅读全文
posted @ 2013-02-28 09:41 东师理想--周枫 阅读(993) 评论(0) 推荐(0) 编辑
摘要: 方法:1、新建一个文本文档2、在文档里输入:RAR registration datawncnUnlimited Company LicenseUID=1b064ef8b57de3ae9b5264122122509b52e35fd885373b214a4a64cc2fc1284b77ed14fa2066ebfca6509f9813b32960fce6cb5ffde62890079861be576387177131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565b41bcf56929486b8bcdac33d50ecf7739960627351 阅读全文
posted @ 2013-02-28 08:32 东师理想--周枫 阅读(428) 评论(0) 推荐(0) 编辑
摘要: [ERROR] The build could not read 1 project -> [Help 1][ERROR][ERROR] The project (D:\workspaces\helloword\pom.xml) has 1 error[ERROR] Non-parseable POM D:\workspaces\helloword\pom.xml: Unrecognised tag:'build' (position: START_TAG seen ...</plugins>\r\n\t <build>... @43:11) @ 阅读全文
posted @ 2013-02-22 19:54 东师理想--周枫 阅读(29929) 评论(0) 推荐(0) 编辑
摘要: 今天想写条语句UPDATE t_resource_structure SET second_root_id = '4F86397B-2B48-613B-3F2B-8ACB5A8B625B' where structure_id not in (SELECT structure_id FROM t_resource_structure WHERE structure_id = 'BADA453D-B319-54B9-9FA0-CFF4C771A833' OR is_xdkm_root = 1);怎么执行都报错,后来发现,在mysql中需要这样写UPDATE t_r 阅读全文
posted @ 2013-02-21 15:43 东师理想--周枫 阅读(774) 评论(1) 推荐(0) 编辑
摘要: 原文链接:http://sarin.javaeye.com/blog/888458今天我们将谈谈Spring访问数据库异常的处理方法,使用JDBC API时,很多操作都要声明抛出java.sql.SQLException异常,通常情况下是要制定异常处理策略。使用JDBC API时,很多操作都要声明抛出java.sql.SQLException异常,通常情况下是要制定异常处理策略。而Spring的JDBC模块为我们提供了一套异常处理机制,这套异常系统的基类是DataAccessException,它是RuntimeException的一种类型,那么就不用强制去捕捉异常了,Spring的异常体系如 阅读全文
posted @ 2013-02-20 14:36 东师理想--周枫 阅读(1214) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页