![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SSM框架
麻衣Protector
java小白一枚.见证从小白到大神的成长之路
展开
-
SSM框架controller中redirect失效
SSM框架controller中redirect失效 页面发送ajax请求到后台controller 如果在controller中进行页面跳转 只会将跳转页面的源代码发送给success函数,所以只能在success函数中进行跳转,所以 你可以在 success 函数中进行页面跳转 例如 @PostMapping("delete") @ResponseBody public Str...原创 2019-06-15 14:21:12 · 812 阅读 · 0 评论 -
注解实现jsp传递日期
注解实现jsp传递日期 在Maven中,jsp向控制器发送日期,会出现接受不到的情况 需要指定日期格式的传递 在util工具包下新建一个TimestampEditor类 package com.wanmait.mqa.util; import org.springframework.util.StringUtils; import java.beans.PropertyEditorSuppor...原创 2019-06-30 19:53:35 · 460 阅读 · 0 评论 -
定时任务与克龙表达式Cron
定时任务 项目启动 , 定时执行 spring.xml中的配置 xml中配置 <!-- 定时任务 --> <task:scheduled-tasks> <task:scheduled ref="job1" method="run" cron="10/5 * * * * ?"/> </task:scheduled-tasks...原创 2019-06-30 20:14:37 · 199 阅读 · 0 评论