2013.04.05

1.一对多映射,最好在多的一段维护关系(避免冗余update语句的出现,例如class对应student,如果由class维护关系,则会多次update掉student),设置少的一段set中的inverse=true。

2.在jsp中输出对象的集合属性的字段,使用jstl标签

<c:forEach  items="${asstudent.reAndpu}"  var="r">

   ${ r.name}

</c:forEach>

3.点击下载出现另存为的对话框

private void downValid(HttpServletResponse response,NetDiskFile netDiskFile)throws Exception{
		try{
			if(netDiskFile!=null){
				File f = new File(netDiskFile.getAttach());
				//文件流的输入
				
				BufferedInputStream br = new BufferedInputStream(new FileInputStream(f));
				response.reset();
				response.setCharacterEncoding("gb2312");
				response.setContentType("application/x-msdownload");
				response.setHeader("Content-Disposition",
							"attachment; filename="+this.toUtf8String(netDiskFile.getFilename())+"."+netDiskFile.getSuffix());
				byte[] buf = new byte[1024];
				int len = 0;
				//文件流的输出
				OutputStream output = response.getOutputStream();
				while ((len = br.read(buf)) > 0){
					output.write(buf, 0, len);
				}	
				br.close();
				output.close();
				
			}else{
				PrintWriter out=response.getWriter();
				out.println("<script language='javascript'>alert(\"you only can download the file, can't do the folder!\");history.back();</script>");
			}
		}catch(FileNotFoundException e){
			PrintWriter out=response.getWriter();
			out.print("<script language='javascript'>alert('Sorry,the file could not be found');history.back();</script>");
		}catch(Exception e){
			PrintWriter out=response.getWriter();
			out.print("<script language='javascript'>alert('while downloading,the error happens.');history.back();</script>");
		}
	}

我的电脑显卡是NVIDIA CUDA 11.6.114 driver,win10,64位的,在安装Anaconda时,有如下几个版本:Anaconda-1.4.0-Windows-x86_64.exe 241.4 MiB 2013-07-04 17:58 Anaconda-1.5.0-Linux-x86.sh 238.8 MiB 2013-07-04 18:10 Anaconda-1.5.0-Linux-x86_64.sh 306.7 MiB 2013-07-04 18:22 Anaconda-1.5.0-MacOSX-x86_64.sh 166.2 MiB 2013-07-04 18:37 Anaconda-1.5.0-Windows-x86.exe 236.0 MiB 2013-07-04 18:45 Anaconda-1.5.0-Windows-x86_64.exe 280.4 MiB 2013-07-04 18:57 Anaconda-1.5.1-MacOSX-x86_64.sh 166.2 MiB 2013-07-04 19:11 Anaconda-1.6.0-Linux-x86.sh 241.6 MiB 2013-07-04 19:19 Anaconda-1.6.0-Linux-x86_64.sh 309.5 MiB 2013-07-04 19:32 Anaconda-1.6.0-MacOSX-x86_64.sh 169.0 MiB 2013-07-04 19:47 Anaconda-1.6.0-Windows-x86.exe 244.9 MiB 2013-07-04 19:56 Anaconda-1.6.0-Windows-x86_64.exe 290.4 MiB 2013-07-04 20:09 Anaconda-1.6.1-Linux-x86.sh 247.1 MiB 2013-07-05 08:34 Anaconda-1.6.1-Linux-x86_64.sh 317.6 MiB 2013-07-05 09:20 Anaconda-1.6.1-MacOSX-x86_64.pkg 197.3 MiB 2013-07-05 10:05 Anaconda-1.6.1-MacOSX-x86_64.sh 170.0 MiB 2013-07-05 12:20 Anaconda-1.6.1-Windows-x86.exe 244.4 MiB 2013-07-05 12:29 Anaconda-1.6.1-Windows-x86_64.exe 289.9 MiB 2013-07-05 12:49 Anaconda-1.6.2-Windows-x86.exe 244.4 MiB 2013-07-10 06:19 Anaconda-1.6.2-Windows-x86_64.exe 289.9 MiB 2013-07-10 07:04 Anaconda-1.7.0-Linux-x86.sh 381.0 MiB 2013-09-20 01:04 Anaconda-1.7.0-Linux-x86_64.sh 452.6 MiB 2013-09-20 02:49 Anaconda-1.7.0-MacOSX-x86_64.pkg 256.7 MiB 2013-09-20 05:04 Anaconda-1.7.0-MacOSX-x86_64.sh 223.3 MiB 2013-09-20 11:00 Anaconda-1.7.0-Windows-x86.exe 280.6 MiB 2013-09-20 11:11 Anaconda-1.7.0-Windows-x86_64.exe,请问我应该安装哪一个?
07-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值