#if($exception)
#if($!exception.class.simpleName=="NoSuchMethodException")
$!response.setStatus(404)
404! 您请求的内容不存在
#else
出错了: $exception.message
#end
#elseif($result)
#if($result.resultCode)
#showSimpleError()
#else
系统错误
#end
#end
spring中配置
<!-- exception related -->
<!-- all exception handler will be registered by DispatcherServlet default (detectAllHandlerExceptionResolvers=true) -->
<bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
<property name="defaultErrorView" value="common/error"/>
<property name="exceptionMappings">
<props>
<prop key="xxxx.common.hrm.IllegalHrmPrivilegeException">error/access-denied</prop>
</props>
</property>
</bean>
分享到:
相关推荐
使用velocity.js开发序列动画,需要同时引入velocity.ui.min.js库文件
利用velocity来定义动画序列,可以直接使用velocity.js中预定义动画开发自己的网页动画,也可以利用velocity.js自定义动画
jar包,官方版本,自测可用
velocity-1.4.jar velocity-1.4.jar
Velocity将java代码从web页面中分离出来,这样为web站点的长期维护提供了便利,同时也为我们在JSP和PHP之外又提供了一种可选的方案。 Velocity的能力远不止web站点开发这个领域,例如,它可以从模板(template)产生...
使用velocity.js开发序列动画,需要同时引入velocity.ui.min.js库文件
velocity-1.7.jar,这里是生成静态页面时用的jar包,
velocity-1.5.jar 需要的朋友快来看看
velocity-1.6.jar
velocity-1.6.2.zipvelocity-1.6.2.zipvelocity-1.6.2.zipvelocity-1.6.2.zip
// Template t = ve.getTemplate("src/velocity/hellovelocity.vm"); ve.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath"); // 在类路径下加载 ve.setProperty("classpath.resource.loader.class...
JAVA中Velocity语法基础.pdf
vim velocity插件 velocity.vim vim异常强大哦
Welcome to Velocity. Velocity is a general purpose template engine written in Java. For more information about Velocity, please look at the HTML documentation in the docs/ directory, as well as the ...
还在为找不到jar文件烦心吗,不用了到我空间来有你想要的,持续更新。。。 velocity-1.5.jar,velocity-1.6.2-dep.jar,velocity-tools-1.3.jar