xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="h...
分类:
编程语言 时间:
2014-06-05 00:23:44
阅读次数:
296
applicationContext.xml<?xmlversion="1.0"encoding="UTF-8"?>
<beansxmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http:..
分类:
编程语言 时间:
2014-06-04 12:51:48
阅读次数:
476
cas是多个系统的中心认证,认证的过程就是用户的登录信息和数据库中的信息匹对的过程,如果某一时刻登录的人数很多,需要频繁的读取数据库,数据库连接的管理就是问题。
前天测试评教时无意之中把单点登录的问题暴露出来了,平时通过cas登录管理端是没有问题的,而200人同时通过cas登陆学生端时出现异常
org.springframework.jdbc.CannotGetJdbcConnectionEx...
分类:
其他好文 时间:
2014-06-03 04:06:50
阅读次数:
428
spring-framework-3.2.4与hibernate-release-4.3.5下使用HibernateDaoSupport抛出异常java.lang.ClassCastException: org.springframework.orm.hibernate4.SessionHolder cannot be cast to org.springframework.orm.hibernate3.SessionHolder。...
分类:
编程语言 时间:
2014-06-03 01:26:30
阅读次数:
368
使用Spring MVC +JDBC 实现输出Json数据和视图两种形式 最后面有源码
从web.xml开始配置:
声明定义两个Servlet分别是输出视图和json
rest
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
/WEB-INF/rest-...
分类:
数据库 时间:
2014-06-02 23:55:13
阅读次数:
508
使用了listener监听器来加载配置,一般在Struts+Spring+Hibernate的项目中都是使用listener监听器的。如下
org.springframework.web.context.ContextLoaderListener
Spring会创建一个WebApplicationContext上下文,称为容器,保存在
ServletConte...
分类:
移动开发 时间:
2014-06-02 02:58:54
阅读次数:
281
2014-6-1 0:47:25 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the jav...
分类:
编程语言 时间:
2014-06-01 16:16:55
阅读次数:
484
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www...
分类:
编程语言 时间:
2014-06-01 14:14:30
阅读次数:
320
这里仅仅是做简单的记录怎样实现。一、基于配置文件的实现 ①编写须要调度的类package
com.study;import org.springframework.scheduling.annotation.Scheduled;import
org.springframework.stereot.....
分类:
编程语言 时间:
2014-05-31 20:07:07
阅读次数:
283
Spring为我们提供了:org.springframework.web.servlet.HandlerInterceptor接口,org.springframework.web.servlet.handler.HandlerInterceptorAdapter适配器,实现这个接口或继承此类,能够很...
分类:
编程语言 时间:
2014-05-31 18:32:16
阅读次数:
300