文章分类 - Java学习笔记
Java学习笔记-本人学习Java过程的积累
摘要:方法一: 其实很简单,war包其实就是经过zip压缩的文件,用winrar压缩成zip格式,修改扩展名为war即可。 方法二: 使用MyEclipse,选择项目的根路径,右键Export->J2EE->WAR file(MyEclipse),下一步,选择war要保存的路径,确定即可。
阅读全文
摘要:第一部分:最常用的快捷键 Ctrl+space : Content Assist自动提示,和系统热键冲突,需要修改成其他的快捷键,我修改成了ctrl+alt+. Ctrl+/ : 注释或取消注释 Ctrl+F6 : 各编辑窗口之间切换,我修改成了Ctrl+Tab Ctrl+Shift+w或者Ctrl+Shift+F4 : 快速关闭所有编辑窗口 Ctrl+D : 删除当前行 Ctrl+F8 : 快速...
阅读全文
摘要:1.写文件 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> public void WriteFile() { try { FileWriter fw = new FileWriter("c:/Write...
阅读全文
摘要:找到config.xml,在和之间插入: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> _appsdir_website_dir AdminServer war autodeploy\website DD...
阅读全文
摘要:哈哈,这是一段不能再简单的代码了! 我使用的是MyEclipse6.5,可以直接使用Spring,方法:新建一Web项目,菜单MyEclipse->Project Capabilities->Add Spring Capabilities...,我使用的是Spring2.0 添加一个c1.java类,这是一个普通的类,里面包含一个函数,返回一个字符串 Code highlighting p...
阅读全文
摘要:在src目录建立p.properties配置文件,内容为: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->str1=111111111 str2=222222222 操作函数: Code highlighting produced by Acti...
阅读全文
摘要:在Eclispe(MyEclipse)主界面,导航到菜单Help > Software Updates > Manage Configuration,在左边窗口选择需要卸载的插件,直接右键Uninstall,按照提示,重新启动Eclispe。
阅读全文
摘要:我的WebLogic 9.2是安装在默认的c:/bea目录下,添加了域:base_domain,启动服务的批处理文件位于C:\bea\user_projects\domains\base_domain\bin\startWebLogic.cmd 我最初的想法是把startWebLogic.cmd直接添加到启动项,可是那个批处理是一直处于等待状态,命令窗口并不会自动关掉,很郁闷。 从网上查了...
阅读全文
摘要:CVS这里就不介绍了,想了解的从网上搜一下,有很多介绍。 这里需要两个软件,一个CVS服务端,一个CVS客户端。这很类似于FTP,Serv-U是服务端,提供ftp服务,CuteFTP是客户端,使用ftp。 CVS服务端使用CVSNT,下载地址:http://www.cvsnt.org/archive/cvsnt-2.5.03.2382.msi CVS客户端使用TortoiseCVS,下载地...
阅读全文
摘要:从官方下载的struts-2.0.11.2的版本,在Tomcat6上跑,普通的页面也会报404错误,从网上查了很多资料,试了无数次,依然报错。 无意间换了个WebLogic9.2,很顺利的就通过了Struts2的页面,很激动啊。 使用Tomcat5.5也可以顺利的跑Struts2,搞不清楚Tomcat6为什么不行。 struts-2.0.11.2的包真多,一共有27个。其实把app/str...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
阅读全文
摘要:使用格式: format(String format, Object... args) 例子: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
阅读全文
摘要:首先需要在页面中引用java.util.*: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 然后在添加如下代码: Code highlighting produced by Actipro CodeHighlighter (freewa...
阅读全文
摘要:bean.java Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public class B1 { public String getString() { return "content"; } }...
阅读全文
摘要:inc.jsp Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> code.jsp Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHi...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 声明函数需要使用"!"号,"!"号是必须的。也可以声明变量,或者类。
阅读全文
摘要:设置session:session.setAttribute(name,value); 读取session:session.getAttribute(name);
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
阅读全文
摘要:t1.htm Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> test 内容: ...
阅读全文
摘要:学习任何一门语言,国际惯例,先从Hello World开始:) Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> test1 代码的效果是在网页上输出 Hello World! 中间...
阅读全文

浙公网安备 33010602011771号