上一页 1 ··· 18 19 20 21 22
摘要: 参考资料:http://www.cnblogs.com/hongten/archive/2011/03/29/1998311.html public class jdbcDemo { Connection con; PreparedStatement pstmt; String company; p 阅读全文
posted @ 2016-12-22 10:45 贱贱的小帅哥 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 原来我们的项目放到webapps下,现在我放到外面,也希望tomcat可以找到它! 也可以把应用放到Tomcat之外,这就是外部应用了。例如我们把上面写的hello应用从webapps目录中剪切到C盘下,即C:/hello。现在hello这个Web应用已经不在Tomcat中了,这时我们需要在tomc 阅读全文
posted @ 2016-12-22 09:45 贱贱的小帅哥 阅读(267) 评论(0) 推荐(0) 编辑
摘要: WEB-INF:下的资源是不允许浏览器访问的。 阅读全文
posted @ 2016-12-17 19:03 贱贱的小帅哥 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-12-17 09:41 贱贱的小帅哥 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 常用的web服务器: 阅读全文
posted @ 2016-12-16 21:29 贱贱的小帅哥 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 默认占用:64M的内存 修改内存的方式: 1、某一类,右键选择--Run Configurations 2、选择--Arguments 3、在VM argments中输入内容,如:-Xmx80m 阅读全文
posted @ 2016-12-14 19:53 贱贱的小帅哥 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 1、方法上申明泛型: public <T> T a(T t){ return t; } 调用: public void testa(){ a("aaa"); } 2、方法上申明多个泛型: public <T,E,K> void b(T t,E e,K k){ //可以申明多个泛型 } 3、类上面申明 阅读全文
posted @ 2016-12-14 13:07 贱贱的小帅哥 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 操作步骤: 1、加载类,如Class cla=Person.class 2、调用getField()/getDeclaredField()方法,参数是类的成员方法名称,如 Filed Field f=cla.getDeclaredField("password"); 3、调用System.out.p 阅读全文
posted @ 2016-12-13 17:00 贱贱的小帅哥 阅读(159) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22