- 博客(19)
- 资源 (4)
- 问答 (3)
- 收藏
- 关注
原创 jdk7/8 TOMCAT7
jdk 7:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.htmljdk 8:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmlhttp://tomcat.
2015-10-29 17:55:04
727
原创 Myeclipse6.5 显示tomcat7
Myeclipse6.5里的Tomcat5.x为Tomcat7.x,修改以下两个文件e:\DEV\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.easie.tomcat5_6.5.0.zmyeclipse650200806\plugin.properties(将来5字样修改成7)e:\DEV\MyE
2015-09-08 12:21:23
671
原创 通过myeclipse生成实体
sql server 2008 通过myeclipse 6.5生成实体的时候,需要4个jar(连接sql server 2000的jar),单独一个sqljdbc4.jar会出现找不到jar看了很多资料说6.5的lib的版本问题,但是无从考证
2015-08-14 17:27:10
658
原创 JS格式化时间
var now = new Date();//今天var tomo = new Date((now/1000+86400*1)*1000);//明天$("#staDate").val(formatDate((now),"yyyy-MM-dd"));$("#endDate").val(formatDate((tomo),"yyyy-MM-dd"));//格式化
2015-07-31 13:59:40
739
原创 修改MySql最大Sql文件导入大小
进入mysql server在mysql 命令行中运行set global max_allowed_packet = 2*1024*1024*10然后关闭掉这此mysql server链接,再进入。show VARIABLES like '%max_allowed_packet%';查看下max_allowed_packet是否编辑成功
2015-07-31 13:46:33
1007
原创 JAVA把字符串当作表达式运行
直接可以穿一个字符串运行private static void test(String pm1) {ScriptEngineManager manager = new ScriptEngineManager();ScriptEngine engine = manager.getEngineByName("js");Object result;try {result
2015-06-10 16:22:39
2349
原创 java web 流下载和POI导出流文件下载
OutputStream out = getResponse().getOutputStream();getResponse().setHeader("Content-disposition", "attachment;filename="+ URLEncoder.encode("1.html", "UTF-8"));getResponse().setContentType("applic
2015-05-18 10:53:35
3608
原创 sql执行过程
写的顺序:select ... from... where.... group by... having... order by.. 执行顺序:from... where...group by... having.... select ... order by...如果遇到分组并排序的情况(group by比order by先执行,所以order by是经过group by后的记录),
2015-04-29 17:25:17
581
原创 MYSQL 分组并查询最大时间
1.利用子查询查询最大时间2.在外层比较时间相等注意点:max只对当列有效##select ta.int_interpreting_data_id,ta.str_value,ta.dt_report_date,ta.dataId,ta.db_name,ta.int_interpreting_data_id,ta.str_property_id from t_inter
2015-04-24 16:28:56
1671
原创 mysql 查询10分钟以内的数据
select *from t_agent where int_last_login>=CURRENT_TIMESTAMP - INTERVAL 10 MINUTE;
2015-04-21 13:25:04
26258
转载 Java 编程下通过反射获取一个类中的方法名和对应参数名
package cn.sunzn.reflectcase;import java.lang.reflect.Method;public class GetMethod { public static void main(String[] args) { getMethodInfo("java.util.HashSet"); }
2015-04-20 15:15:57
4930
原创 tomcat的"ctrl + c" 问题
解决办法是右键点击tomcat窗口,属性-》选项-》去掉“快速编辑模式”的勾。 先这么处理一下,看后面还会出问题不。
2015-04-16 10:00:52
1484
原创 getOutputStream() has already been called for this response 下载excel
public String exportExcel(){ try { //单机报表监控总结 //List danJiSumLs= getInterpretingDataManager().findDanJiReportSummarizeList(date,strPropertyId); //单机报表详情 List danJiLs=getInterpretingData
2015-04-10 16:59:27
801
原创 mysql 计算30分钟以内数据
正确的SELECT * FROM echo WHERE create_time>=CURRENT_TIMESTAMP - INTERVAL 30 MINUTE;理论上正确的select * from echo where create_time select (unix_timestamp('2015-04-07 04:38:00' ) - unix_ti
2015-04-07 05:20:37
2840
1
原创 str_to_date mysql日期比较
AND (str_to_date(tid.dt_report_date,'%Y-%m-%d') >= '2015-04-01' AND str_to_date(tid.dt_report_date,'%Y-%m-%d') <='2015-04-05')
2015-04-03 17:00:58
2494
原创 一个tomcat部署多个struts2项目
在web.xml添加下面代码webAppRootKeywebapp.root2如果不显示写明,默认都是webapp.root"webapp.root"这个字符串可以随便写任何字符串。如果不配置默认值是"webapp.root"。
2015-03-22 14:48:37
917
转载 date_format MYSQL
表中字段的内容是"年-月-日 时:分:秒",需要查询匹配“年月日”或“时:分:秒”的数据条目,这个时候就可以通过下面的SQL语句实现: select * from _table where date_format(_datetime,'%Y%m%d')= '20080227'(匹配“年月日”) select * from _table where date_format(_datet
2015-03-19 21:55:17
638
MYSQL语句优化,在线等
2015-06-05
一个数据库(mysql) 俩个项目跑 有什么好解决方案或者注意的问题?
2014-09-11
关于bat调用class,请教大家
2014-05-19
TA创建的收藏夹 TA关注的收藏夹
TA关注的人