随笔分类 - java
摘要:在Windows->Preferences->General->Appearance->Colors and Fonts->Java->Java Editor Text Font…… 中修改,字体一般为14
阅读全文
摘要:在Windows->Preferences->Java->Code Style->Code Templates 的 Comments中 Types 是控制类的注释 /** * @Title: ${file_name} * @Package ${package_name} * @Description
阅读全文
摘要:工具: apache-maven-3.2.3.zip maven_data.zip 在java Window->Preferences->Maven中 Installations中添加apache-maven-3.2.3.zip 如图 然后点击Apply 然后在User Setttings中添加ma
阅读全文
摘要:(1)windows---->Preferences(2)general---->Workspace(3)设置编码
阅读全文
摘要:(1)Add Library 中 MyEclipse Libraries(2)输入 java 即可找到问题解决。
阅读全文
摘要:(1) 单击File按钮---钩选Show AllWizard——》选择Server——》单击Next(2)Add Library 选择 WTP Server Runtime(MyEclipse incompatible)问题解决。
阅读全文
摘要:免安装tomcat 运行的时候要执行免安装的 jdk,可以进行如下设置。在startup.bat 里加上这么一句,set "JAVA_HOME=C:\jdk1.6.0_43"
阅读全文
摘要:public static void AddCookie(HttpServletResponse response, String key, String value) { Cookie cookie = new Cookie(key, value); response....
阅读全文
摘要:1、如果用“.”作为分隔的话,必须是如下写法:String.split("\\."),这样才能正确的分隔开,不能用String.split(".");2、如果用“|”作为分隔的话,必须是如下写法:String.split("\\|"),这样才能正确的分隔开,不能用String.split("|");...
阅读全文
摘要:commons-lang.jarcommons-beanutils.jarcommons-collections.jarcommons-logging.jarezmorph.jarjson-lib-2.2.2-jdk15.jar
阅读全文
摘要:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.Mysql 服务器默认的“wait_timeout”是8小时,也就是...
阅读全文
摘要:jstl中前台jsp页面调用对象中的属性时,用的是小驼峰命名法。例如:${item.createTime}1、小驼峰式命名法(lower camel case):第一个单字以小写字母开始,第二个单字的首字母大写。例如:firstName、lastName。2、大驼峰式命名法(upper camel ...
阅读全文
摘要:在java中貌似是没有静态构造函数的。不过用下面的方式同样可以实现效果。static { }//end这是静态代码块
阅读全文
摘要:JSTL :JSP Standard Tag Library,JSP标准标签库1.导入包jstl.jarstandard.jar2.页面中添加标识3.循环语法 ${item.key} || ${item.value}
阅读全文
摘要:"> ">主要作用:下面的123 的地址连接前会自动加上基本设置中的连接。
阅读全文
摘要:搭建普通 springmvc1.如图建立相关文件建立在WEB-INF下比较安全,不能直接访问资源。2.建立Controller控制器,如图3.需要导入的jar包commons-logging-1.1.jar4.web.xml 核心代码添加 MyJsp.jsp ...
阅读全文
摘要:1.Servlet基础类,必须继承HttpServlet 1 package com.fan; 2 3 import java.io.IOException; 4 import java.io.PrintWriter; 5 6 import javax.servlet.ServletExcept...
阅读全文
摘要:1.创建类2.接口编写1 package com.fan;2 3 import javax.jws.WebService;4 5 @WebService6 public interface IHelloWorld {7 void SayHi(String str);8 }// end3.实现...
阅读全文
摘要:javactrl+shift+y 小写ctrl+shift+x 大写ctrl+shift+f 格式化代码vsctrl+u 小写ctrl+shift+u 大写ctrl+k+f 格式化代码
阅读全文

浙公网安备 33010602011771号