posted @ 2016-06-23 10:57
06 2016 档案
摘要:alter table user add nuique index(user_id,user_name); 给一个表创建联合索引 alter ignore table user add unique index(user_id,user_name); 如果表里有以前的数据,就会删除留下一条
阅读全文
摘要:<style> #box{ height:214px; width:500px; overflow-y:auto;/** 必须,否则当表格数据过多时,不会产生滚动条,而是自动延长该div的高度 */ position:relative;/** 必须,若不设置,拷贝得来的表头将相对于其设置该属性为该值
阅读全文
posted @ 2016-06-22 12:03
摘要:#log4j.rootLogger=DEBUG,stdout,filelog4j.rootLogger=ERROR,stdout,filelog4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layou
阅读全文
posted @ 2016-06-20 10:39
摘要:// 下载模板 @RequestMapping("/download") @ResponseBody public ResponseEntity<byte[]> download(HttpServletRequest request)throws IOException { String path=
阅读全文
posted @ 2016-06-18 10:33
摘要:commons-logging.jar导入这个包到tomcat lib下 2.修改tomcat的bin目录下面的catalina.bat文件 只需修改:set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar; 修改为: set CLAS
阅读全文
posted @ 2016-06-16 11:43
摘要:startup.bat shutdown.bat 里面编辑加入,是因为启动找不到路径,加载不了所以闪退 SET JAVA_HOME=D:\Java\jdk1.6.0_10 (java jdk目录)SET TOMCAT_HOME=E:\tomcat-6.0.35 (解压后的tomcat文件目录
阅读全文
posted @ 2016-06-16 10:16
摘要:第一种:获取根目录下的文件名 ApplicationContext ac = new ClassPathXmlApplicationContext("../mvc-dispatcher-servlet.xml"); 第二种 ApplicationContext ac = new FileSystem
阅读全文
posted @ 2016-06-02 20:28
浙公网安备 33010602011771号