摘要: 在 Spring Boot 框架中,我们使用最多的是Tomcat,这是 Spring Boot 默认的容器技术,而且是内嵌式的 Tomcat。Tomcat 是 Apache 基金下的一个轻量级的Servlet 容 器 , 支 持 Servlet 和 JSP 。Tomcat服务器本身具有Web服务器的 阅读全文
posted @ 2023-07-21 17:51 苹果芒 阅读(5834) 评论(1) 推荐(2)
摘要: https://blog.csdn.net/Sandy_lss/article/details/125668355 阅读全文
posted @ 2023-07-21 10:57 苹果芒 阅读(31) 评论(0) 推荐(0)
摘要: 前言dubbo接口数据进行转换的过程中,出现了空指针,但是自己捕获的时候没有注意这个问题,只是简单的打印出来,结果发现答应出来的都是null,基本上是无效的异常打印。 完善异常信息一开始的代码是如下所示: try { main(event, controlDTO); } catch (Excepti 阅读全文
posted @ 2023-07-20 17:07 苹果芒 阅读(457) 评论(0) 推荐(0)
摘要: 一、问题的出现 最近在使用RestTemplate发送HTTP请求时,服务端发送回来的响应结果中,HTTP响应码为400、500之类的,RestTemplate默认不处理这类响应结果,直接抛异常。但是,该请求的响应结果内容却是我需要用到的,因为我需要通过该请求的响应结果内容,告诉用户远程调用接口时, 阅读全文
posted @ 2023-07-19 17:31 苹果芒 阅读(957) 评论(0) 推荐(0)
摘要: 注意: java调用python.py文件并传参,在windows和linux中使用是不一样的 我在windows操作系统中,java调用python文件并传参,是这样写的:完全没问题 try { Integer totalTestCaseCount = 0; //传入python文件的参数: St 阅读全文
posted @ 2023-07-11 13:18 苹果芒 阅读(758) 评论(0) 推荐(0)
摘要: 一、HashSet去重 我们知道 HashSet 天生具备“去重”的特性,那我们只需要将 List 集合转换成 HashSet 集合就可以了,实现代码如下: public class ListDistinctExample { public static void main(String[] arg 阅读全文
posted @ 2023-07-10 14:06 苹果芒 阅读(79) 评论(0) 推荐(0)
摘要: 这篇文章给大家分享的是有关如何解决Shell执行python文件,传参空格引起的问题的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。 使用shell调用一个python文件,并向shell中传入参数,举例如下: p1='wang' p2='shuang' python py 阅读全文
posted @ 2023-07-07 15:48 苹果芒 阅读(166) 评论(0) 推荐(0)
摘要: int a=9; int b=7;float c = (float) a / (float) b; //把整型数据 转换为 浮点型 数据System.out.println(c);System.out.println( String.format("%.2f", c));//保留小数点后2位 方法有 阅读全文
posted @ 2023-06-30 17:44 苹果芒 阅读(405) 评论(0) 推荐(0)
摘要: SELECT * FROM result co where <if test="projectId != null"> co.projectId=#{projectId} and </if> <if test="startTime!=null and endTime!=null"> modifyTi 阅读全文
posted @ 2023-06-30 17:35 苹果芒 阅读(130) 评论(0) 推荐(0)
摘要: insert into result(userId,year,month,increaseRate,decreaseRate,autoRate,finishRate,createTime,modifyTime) values( #{userId},#{year},#{month},#{increas 阅读全文
posted @ 2023-06-30 17:32 苹果芒 阅读(89) 评论(0) 推荐(0)