摘要: 简介 Camel框架的核心是一个路由引擎,或者更确切地说是一个路由引擎构建器。它允许您定义自己的路由规则,决定从哪个源接收消息,并确定如何处理这些消息并将其发送到其他目标。 参考:https://www.jianshu.com/p/68aba8d09a89 实践 file to file pom: 阅读全文
posted @ 2022-04-08 18:47 谁在逆水行舟 阅读(85) 评论(0) 推荐(0) 编辑
摘要: start.sh: 阅读全文
posted @ 2019-06-03 21:13 谁在逆水行舟 阅读(1466) 评论(0) 推荐(0) 编辑
摘要: 1、jsp $(document).on("click",".download",function(){ var tContent=$(this).attr("va"); alert(tContent); tContent=tContent.substr(7); alert(tContent); v 阅读全文
posted @ 2018-09-25 22:32 谁在逆水行舟 阅读(2020) 评论(0) 推荐(0) 编辑
摘要: 1、下载 @RequestMapping("/download") public void download(HttpServletRequest request, HttpServletResponse response) throws IOException{ String filename=" 阅读全文
posted @ 2018-09-20 11:09 谁在逆水行舟 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 遍历结果集1-n的时候出现 org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 5 这个异常; 我的 阅读全文
posted @ 2018-09-13 23:18 谁在逆水行舟 阅读(1396) 评论(0) 推荐(0) 编辑
摘要: 1、基本方式的读取: 建立一个properties文件有一个键值对:aa=123 Properties pro = new Properties(); pro.load(new FileInputStream("properties/conf.properties")); String value 阅读全文
posted @ 2018-09-13 09:52 谁在逆水行舟 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1、建立一个抽象类httpfilter实现filter接口 里面实现获取FilterConfig()和 getServletContext()方法; 建一个dofilter(HttpServletRequest request,HttpServletResponse response,FilterC 阅读全文
posted @ 2018-09-13 09:33 谁在逆水行舟 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 这里是基于tomcat服务器 1、post方式的乱码 乱码的原因主要是存入的编码方式和取出的编码方式不同,在就是不支持中文编码; 一般都使用“utf-8”的编码格式进行存取和显示; post方式进行请求时,数据是放入请求体之中,可以使用以下方式解决乱码问题: request.setCharacter 阅读全文
posted @ 2018-09-13 09:14 谁在逆水行舟 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 杨辉三角:打印出一个等腰三角形,两个边上的值都是1,而其他的值是它的两个肩上的值相加; 例如 1 1 1 1 2 2 1 代码如下打印高度为9的杨辉三角: int[][] arr=new int[9][]; //先给数组赋值 for (int i = 0; i < arr.length; i++) 阅读全文
posted @ 2018-09-12 21:02 谁在逆水行舟 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1、servlet作用 用来处理jsp提交的用户数据,并调用jdbc持久层的方法 最后将数据反馈给jsp页面; 2、servlet生命周期 在servlet请求时init()开始初始化,只会执行一次; service()进行业务处理;会执行多次 destroy()在服务器停止时执行; 3、xml中的 阅读全文
posted @ 2018-09-02 11:38 谁在逆水行舟 阅读(110) 评论(0) 推荐(0) 编辑