![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
文章平均质量分 54
zhanshenyn
高调做事,低调做人
展开
-
web项目怎么启动spring容器
1. 首先,在web.xml中配置spring的配置文件的位置 contextConfigLocation classpath:spring/spring-applicationContext.xml 注:context-param中定义的是application范围内的参数,存放在servletcontext中 2. 在web.xml中定义listener ...原创 2012-01-04 17:28:05 · 202 阅读 · 0 评论 -
Spring Security中的ACL
ACL即访问控制列表(Access Controller List),它是用来做细粒度权限控制所用的一种权限模型。对ACL最简单的描述就是两个业务员,每个人只能查看操作自己签的合同,而不能看到对方的合同信息。 一、准备数据库和aclService ACL所需的四张表,表结构见附录:附录 E, 数据库表结构。然后我们需要配置aclService,它负责与数据库进行交互。 ...原创 2012-01-11 13:47:05 · 120 阅读 · 0 评论 -
spring3配置文件中的context:property-placeholder/元素[转]
spring3配置文件中的context:property-placeholder/元素 1.有些参数在某些阶段中是常量 比如 :a、在开发阶段我们连接数据库时的连接url,username,password,driverClass等 b、分布式应用中client端访问server端所用的server地址,port,servic...原创 2012-06-14 14:27:44 · 61 阅读 · 0 评论 -
spring配置文件载入
Spring配置文件的装载在Web.xml中配置: <!-- Spring ApplicationContext配置文件的路径,可使用通配符,多个路径用,号分隔 此参数用于后面的Spring Context Loader --> <context-param> <param-name>contextConfigLocation</param-...原创 2012-08-29 11:36:56 · 75 阅读 · 0 评论 -
Spring 3.x MVC 入门4 -- @ResponseBody & @RequestBody【转】
@ResponseBody & @RequestBody http://www.cnblogs.com/zhaoyang/archive/2012/01/07/2315436.html 作用? @RequestBody 将 HTTP 请求正文插入方法中,使用适合的HttpMessageConverter将请求体写入某个对象。 @ResponseBody 将内容或对...原创 2013-01-08 11:39:10 · 81 阅读 · 0 评论 -
spring读取多个配置文件
<bean id="systemProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="locations"> <list> &原创 2012-09-25 13:58:26 · 104 阅读 · 0 评论 -
DelegatingFilterProxy原理
DelegatingFilterProxy的原理及使用 DelegatingFilterProxy就是一个对于servlet filter的代理,用这个类的好处主要是通过Spring容器来管理servlet filter的生命周期,还有就是如果filter中需要一些Spring容器的实例,可以通过spring直接注入,另外读取一些配置文件这些便利的操作都可以通过Spring来配置实现。...原创 2013-01-18 15:02:32 · 184 阅读 · 0 评论 -
spring中配置quartz
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=...原创 2012-10-08 18:41:33 · 86 阅读 · 0 评论