摘要: props、set、list、map这些事spring配置文件中很常见的标签,下面说下各自的适用场合。 props:用于键值对,建和值都为string类型。 set:用于属性set的情况,元素无重复。 list:用法类似set,区别是元素可重复,比如List和数组。 map:类似props,建和值可 阅读全文
posted @ 2016-10-14 17:56 冰封绝恋 阅读(533) 评论(0) 推荐(0) 编辑
摘要: SimpleMappingExceptionResolver 阅读全文
posted @ 2016-10-14 10:31 冰封绝恋 阅读(202) 评论(0) 推荐(0) 编辑
摘要: <task:scheduled-tasks> <!--<task:scheduled ref="UDPTask" method="doTask" cron="0 1 * * * ?"/> 0 0 23 * * ?--> <!--<task:scheduled ref="UDPTask" method 阅读全文
posted @ 2016-10-14 10:25 冰封绝恋 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 通过配置织入@Aspectj切面 虽然可以通过编程的方式织入切面,但是一般情况下,我们还是使用spring的配置自动完成创建代理织入切面的工作。 通过aop命名空间的<aop:aspectj-autoproxy />声明自动为spring容器中那些配置@aspectJ切面的bean创建代理,织入切面 阅读全文
posted @ 2016-10-14 09:59 冰封绝恋 阅读(343) 评论(0) 推荐(0) 编辑
摘要: <mvc:annotation-driven/> 在spring的spring-mvc.xml配置文件中配置,用于启动注解驱动的Spring MVC功能,注册请求url和注解POJO类方法的映射,即作用域@RequestMapping,不配置的话请求的url和controller中的方法没有进行映射 阅读全文
posted @ 2016-10-14 09:58 冰封绝恋 阅读(141) 评论(0) 推荐(0) 编辑