首页>代码>KindEditor在springmvc中的使用(maven项目完整版)>/springmvc-kindedtor/src/main/java/com/tandaly/actions/IndexController.java
package com.tandaly.actions; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.HttpServletResponse; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; /** * 测试控制器 * @author Tandaly * @date 2013-7-17 下午3:25:40 */ @Controller public class IndexController { @RequestMapping("test") public void test() { } /** * 提交表单操作 * @param response * @param content */ @RequestMapping("ajaxForm") public void ajaxForm(HttpServletResponse response, String content) { response.setCharacterEncoding("UTF-8"); response.setContentType("text/html"); PrintWriter writer = null; try { writer = response.getWriter(); writer.println(content); writer.flush(); } catch (IOException e) { e.printStackTrace(); } finally { if (writer != null) { try { writer.close(); } catch (Exception e) { e.printStackTrace(); } } } } }

yueguojian LV1
2021年3月17日
qazzaq123 LV20
2021年2月26日
流浪者1996 LV5
2020年7月30日
gy964781920 LV5
2020年5月22日
912299793 LV21
2020年5月15日
别以为长得帅就不打你 LV5
2020年1月12日
胜可知 LV6
2019年12月19日
wangguifeng LV1
2019年7月15日
gaowei96 LV1
2019年6月1日
韩毅飞 LV11
2019年4月27日

苏拉德666 LV4
2023年5月18日
qhdjod LV7
2023年4月1日
1234hw LV3
2022年11月20日
xuexizhuanyong23 LV16
2022年10月18日
没朋友的键盘侠 LV8
2022年1月2日
Hadoop_CPU LV6
2021年11月29日
秦sir3067683450 LV10
2021年6月2日
kpirateshe LV1
2021年5月26日
purple_icer
2021年5月15日
暂无贡献等级
1006640152 LV11
2021年4月22日