共 32 篇文章 |
|
Spring MVC的restful获取文件名我有一个控制器,可提供基于REST访问。BLAH_GET + "/{blahName}")public ModelAndView getBlah(@PathVariable String blahName, HttpServletRequest request, HttpServletResponse response) {我遇到的问题是,如果我打的服务器路径变量有特殊字符它就会被截断。BLAH_GET + "/{blahName}/"})... 阅1172 转1 评0 公众公开 14-04-21 16:08 |
shiro如何动态管理url.import org.apache.commons.lang3.import org.apache.shiro.import com.capitalbio.soft.core.shiro.1:对 org.apache.shiro.web.filter.mgt.DefaultFilterChainManager.filterChains 执行清空,它维护的是个map.否则原先的没有被覆盖的filterChains还会存在!3:使用org.apache.shiro.web.filter.mgt.DefaultFilterChainMana... 阅7231 转62 评0 公众公开 14-01-15 22:44 |
<context:component-scan base-package="com.foo" use-default-filters="false"><context:include-filter type="regex" expression="com.foo.bar.*Config"/><context:include-filter type="regex" expression="com.foo.config.*"/></context:component-scan... 阅3387 转5 评0 公众公开 13-12-22 00:38 |
Spring: context:exclude-filter 与 context:include-filter. 阅1145 转1 评0 公众公开 13-12-22 00:38 |
从任务调度的触发时机来分,这里主要是针对作业使用的触发器,主要有以下两种:每隔指定时间则触发一次,在Quartz中对应的触发器为:org.springframework.scheduling.quartz.SimpleTriggerBean每到指定时间则触发一次,在Quartz中对应的调度器为:org.springframework.scheduling.quartz.CronTriggerBean.Quartz第一种,作业类继承自特定的基类... 阅76 转0 评0 公众公开 13-12-21 16:32 |
PostProcessorBean Bean initializingusername:testPostProcessorBean Bean initializedusername:test---------------testBeanFactoryPostProcessor----------------username:testpassword:test.PostProcessorBean Bean initializingusername:xiaojunPostProcessorBean Bean initializedusername:xiaojun---------------testBeanFactoryPostPro... 阅1349 转3 评0 公众公开 13-12-20 16:57 |
DOCTYPE beans PUBLIC "-//SPRING/DTD BEAN/EN" "http://www.springframework.org/dtd/spring-beans.dtd">在这个Bean定义档中,虽然helloBean已经设定好helloWord属性,然而高权限的管理者可以使用一个hello.properties来推翻这个设定:上面指定了helloBean的属性helloWord为Hello!Justin!,根据Bean定义档与hello.prop... 阅1681 转0 评0 公众公开 13-12-20 16:02 |
阅484 转1 评0 公众公开 13-12-20 15:47 |
然后到跟/log/目录下,我们会看到有一个新的文件mylog_a_debug.log,打开看到内容如下:2009-12-27 09:19:30,718 [main] DEBUG com.spike.test.a.TestA - TestA-debug2009-12-27 09:19:30,718 [main] INFO com.spike.test.a.TestA - TestA-info2009-12-27 09:19:30,718 [main] WARN com.spike.test.a.TestA - TestA-warn2009-12-27 09:19:30,... 阅287 转3 评0 公众公开 13-12-18 23:32 |
Client.wrapException(Client.java:1095)at org.apache.hadoop.ipc.Client.call(Client.java:1071)at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)at $Proxy1.getProtocolVersion(Unknown Source)at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)at org.apache.hadoop.hd... 阅26168 转4 评0 公众公开 13-09-03 23:23 |