随笔分类 - java
摘要://加密密码 $("#Submit").on("click",function(){ var passWord=$("#passWord").val(); var eles = []; eles.push(passWord); var esz = encode("0x12",eles); $("#passWord").val(e...
阅读全文
摘要:1.下面中哪两个可以在A的子类中使用:( ) class A { protected int method1 (int a, int b) { return 0; } } A. public int method 1 (int a, int b) { return 0; } B. private i
阅读全文
摘要:1 package com.dao.impl; 2 3 import java.lang.reflect.ParameterizedType; 4 import java.util.Collection; 5 import java.util.List; 6 7 import org.hibernate.Query; 8 import org.hibernat...
阅读全文
摘要:备份数据库脚本 必须安装一个Mysql数据库版本要比存储数据库版本要高或一样。 我安装的mysql5.7 但是在服务器上发现安装不了,原来服务器上啥都没有先安装,先安装个vc2013_x64。 然后安装Mysql5.7解压版,记住安装路径 在环境变量的path中配置安装路径到bin 打开cmd c:
阅读全文
摘要:Math.round(11.5) 等于多少?Math.round(-11.5)等于多少?答:Math.round(11.5)的返回值是12,Math.round(-11.5)的返回值是-11。四舍五入的原理是在参数上加0.5然后进行下取整。
阅读全文
摘要:本地环境没有问题,部署到正式服务器报错 Invalid tld file: "/WEB-INF/tagsd/functionTag.tld", see JSP specification section 7.3.1 for more details 在网上查了下问题说如果你使用的是jsp2.2就不能
阅读全文
摘要:在做自定义标签的时候出现错误,告诉我在该类中找不到该方法。解:.xml文件中配置错误,方法传递的参数类型是Integer,而java代码中接受的是int,参数类型不一样,所以找不到该方法。 在新建了一张表,用代码完成了生成,在执行插入的时候,报错告诉我没法进行插入处理,最后解决错误为使用了MySQL
阅读全文
摘要:package com.dataTaskListener; import org.apache.commons.httpclient.Header; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.NameValuePair; import org.apache.commo...
阅读全文
摘要:出错咯 在eclipse本地测试的时候正常,部署到服务器的时候定时器执行了两次,在网上搜索了下问题解决方法。 一种说spring配置的问题,一种是tomcat的配置问题。 我觉得我的问题应该是Tomcat的问题,因为本地没问题,服务器就出问题。 我在构造方法中尝试打桩输出,服务器上部署测试发现控制台
阅读全文
摘要:1 Trader raoul = new Trader("Raoul", "Cambridge"); 2 Trader mario = new Trader("Mario","Milan"); 3 Trader alan = new Trader("Alan","Cambridge"); 4 Trader brian = new Trader("Brian","Cambridge")...
阅读全文
摘要:1 2 3 service层方法 4 5 public E outer(Function function) { 6 7 return dao.outer(function); 8 } 9 10 dao层方法 11 12 public E outer(Function function) { 13 14 return function.apply(this....
阅读全文
摘要:1 package utils; 2 3 import java.text.ParseException; 4 import java.text.SimpleDateFormat; 5 import java.util.Calendar; 6 import java.util.Date; 7 import java.util.GregorianCalendar; ...
阅读全文

浙公网安备 33010602011771号