摘要: 在使用indexOf之前加入 if (!Array.prototype.indexOf) { Array.prototype.indexOf = function(elt /*, from*/ ) { var len = this.length >>> 0; var from = Number(ar 阅读全文
posted @ 2020-12-30 16:39 mollie_x 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 因为程序要从数据读取近10W行记录处理,当读到9W的时候就出现 java.lang.OutOfMemoryError: Java heap space 这样的错误。在网上一查可能是JAVA的堆栈设置太小的原因。跟据网上的答案大致有这两种解决方法:1、设置环境变量set JAVA_OPTS= -Xms 阅读全文
posted @ 2020-11-02 16:59 mollie_x 阅读(2947) 评论(0) 推荐(0) 编辑
摘要: 一、创建一个BigDecimal对象。 首先是bigdecimal的初始化 这里对比了两种形式,第一种直接value写数字的值,第二种用string来表示 BigDecimal num1 = new BigDecimal(0.005); BigDecimal num2 = new BigDecima 阅读全文
posted @ 2020-10-20 15:10 mollie_x 阅读(1908) 评论(0) 推荐(0) 编辑
摘要: public static void beforeOneHourToNowDate() { Calendar calendar = Calendar.getInstance(); /* HOUR_OF_DAY 指示一天中的小时 */ calendar.set(Calendar.HOUR_OF_DAY 阅读全文
posted @ 2020-10-20 14:39 mollie_x 阅读(247) 评论(0) 推荐(0) 编辑
摘要: -Xms256m -Xmx1024m -XX:MaxPermSize=256m 阅读全文
posted @ 2020-10-19 09:54 mollie_x 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1.修改tomcat7-maven-plugin-2.2.jar包 2.tomcat插件配置 <plugins> <!-- 配置Tomcat插件 --> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-m 阅读全文
posted @ 2019-03-24 22:39 mollie_x 阅读(2555) 评论(0) 推荐(0) 编辑
摘要: 当前端将写好的数据已经正确无误的可以传递到后端,后端也可以获取到这个数据,但是,就是有其中的一个属性值或者某几个属性值就是获取不到,这中情况发生时,麻烦检查一下自己的实体类的set和get方法是不是以bean的格式写出来的。本人将之前写好的实体类的属性名称换了,但是没有换该属性对应的set get方 阅读全文
posted @ 2019-03-21 13:49 mollie_x 阅读(2867) 评论(0) 推荐(1) 编辑
摘要: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 126,421,823 milliseconds ago. The l 阅读全文
posted @ 2019-03-21 08:22 mollie_x 阅读(12643) 评论(0) 推荐(0) 编辑
摘要: 分享一下比较两个实体类的工具包 阅读全文
posted @ 2019-03-21 08:11 mollie_x 阅读(9871) 评论(11) 推荐(1) 编辑
摘要: <el-table-column prop="picture" header-align="center" align="center" width="150px" label="图片"> <template slot-scope="scope"> <el-popover placement="ri 阅读全文
posted @ 2019-03-18 21:50 mollie_x 阅读(6306) 评论(0) 推荐(0) 编辑