-
Java元组Tuple使用实例--转载
所属栏目:[Java] 日期:2020-12-14 热度:178
原文地址:http://50vip.com/35.html 一、为什么使用元组tuple ? ? ? 元组和列表list一样,都可能用于数据存储,包含多个数据;但是和列表不同的是:列表只能存储相同的数据类型,而元组不一样,它可以存储不同的数据类型,比如同时存储int、string、list等[详细]
-
可视化swing界面编辑--转载
所属栏目:[Java] 日期:2020-12-14 热度:178
原文地址:http://279234058.iteye.com/blog/2200122 今天发现了一个WindowBuilder插件,功能好强大,啊哈哈,从此告别手动编辑swing界面代码,直接像VB那样编辑界面,代码会自动生成。?????? 首先在Eclipse中点击help,选择Install New Software,然后在Work[详细]
-
HttpServer的使用
所属栏目:[Java] 日期:2020-12-14 热度:93
http://docs.oracle.com/javase/8/docs/jre/api/net/httpserver/spec/overview-summary.html Programmers must implement the?HttpHandler ?interface. This interface provides a callback which is invoked to handle incoming requests from clients. A H[详细]
-
How to Map Distinct Value Types Using Java Generics--referen
所属栏目:[Java] 日期:2020-12-14 热度:112
原文:http://www.codeaffine.com/2015/03/04/map-distinct-value-types-using-java-generics/ Occasionally the average developer runs into a situation where he has to map values of arbitrary types within a particular container. However the Java[详细]
-
Java Annotations: Explored & Explained--转载
所属栏目:[Java] 日期:2020-12-14 热度:123
原文地址:http://www.javacodegeeks.com/2012/08/java-annotations-explored-explained.html One of the many wonderful features of Java 5 SE is the introduction of the Annotations construct.Annotations are tags that we can insert into our progr[详细]
-
Basic Example of JMX Technology--转载
所属栏目:[Java] 日期:2020-12-14 热度:112
原文地址:http://nick-lab.gs.washington.edu/java/jdk1.5b/guide/jmx/tutorial/connectors.html ,? ,? ?and? . This example demonstrates standard and dynamic MBeans only. The server: Creates an MBean server Registers a? ?and a? ?MBean in the lo[详细]
-
How to Analyze Java Thread Dumps--reference
所属栏目:[Java] 日期:2020-12-14 热度:173
原文地址:http://architects.dzone.com/articles/how-analyze-java-thread-dumps The content of this article was originally written by Tae Jin Gu on the?.? When there is an obstacle,or when a Java based Web application is running much slower t[详细]
-
What Influences Method Call Performance in Java?--reference
所属栏目:[Java] 日期:2020-12-14 热度:189
reference from:https://www.voxxed.com/blog/2015/02/too-fast-too-megamorphic-what-influences-method-call-performance-in-java/ Whats this all about then? Let’s start with a short story. I??on the a Java core libs mailing list to override s[详细]
-
keyStore vs trustStore--转载
所属栏目:[Java] 日期:2020-12-14 热度:179
原文:http://lukejin.iteye.com/blog/605634 今天有同事向我问起这两个概念,所以我就记录下。首先我们得澄清一些概念。一个web应用如果需要提供以https的方式访问的服务的话,我们需要一个数字证书,这个证书的配置是在apache的配置文件或者其他web容器的[详细]
-
使用split进行分割时遇到特殊字符的问题
所属栏目:[Java] 日期:2020-12-14 热度:105
使用split分割时: String[] a="aa|bb|cc".split("|" output: [a,a, |,b,|,c,c] 先看一下split的用法: Splits span style="color: #0000ff;"this span style="color: #000000;" string around matches of the given regular expression. This method works[详细]
-
当前工程读取配置文件示例
所属栏目:[Java] 日期:2020-12-14 热度:92
当前工程目录读取配置示例: }/spanspan style="color: #0000ff;"gt;public/span span style="color: #0000ff;"gt;static/spanspan style="color: #000000;"gt; String getConfigDir(){ String userDir/span=System.getProperty("user.dir"span style="color[详细]
-
schedule() 和 scheduleAtFixedRate() 的区别--转载
所属栏目:[Java] 日期:2020-12-14 热度:195
1.? schedule() ,2个参数方法: 在执行任务时,如果指定的计划执行时间scheduledExecutionTime 2.? schedule() ,3个参数方法: 在执行任务时,如果指定的计划执行时间scheduledExecutionTime 3.? scheduleAtFixedRate() ,3个参数方法: 在执行任务时,如[详细]
-
Java出现No enclosing instance of type E is accessible. Must
所属栏目:[Java] 日期:2020-12-14 热度:192
原文:http://blog.csdn.net/sunny2038/article/details/6926079 最近在看Java,在编译写书上一个例子时,由于书上的代码只有一部分,于是就自己补了一个内部类。结果编译时出现:No enclosing instance of type E is accessible. Must qualify the allocati[详细]
-
The 10 Most Important Security Controls Missing in JavaEE--r
所属栏目:[Java] 日期:2020-12-14 热度:154
JavaEE has some excellent built-in security mechanisms,but they don’t come close to covering all the threats that your applications will face. ?Many common attacks like Cross-Site Scripting (XSS),SQL Injection,Cross-Site Request Forgery ([详细]
-
Improving Lock Performance in Java--reference
所属栏目:[Java] 日期:2020-12-14 热度:147
After we introduced??to??couple of months ago,we have started to receive queries similar to “hey,great,now I understand what is causing my performance issues,but what I am supposed to do now?” We are working hard to build the solution in[详细]
-
The Class Loader Hierarchy--转载
所属栏目:[Java] 日期:2020-12-14 热度:81
Class loaders in the Application Server runtime follow a delegation hierarchy that is illustrated in the following figure and fully described in. The following table describes the class loaders in the Application Server. Table 2–1 Sun Jav[详细]
-
JDBC Transaction Management Example---reference
所属栏目:[Java] 日期:2020-12-14 热度:154
In this post,we want to talk about JDBC Transactions and how we can manage the operations in a database. The most popular DBMS like MySQL and Oracle have by default the option autocommit enabled,it means immediately after any DML Operation[详细]
-
Glossary of Terms in the JavaTM platform --reference
所属栏目:[Java] 日期:2020-12-14 热度:176
http://docs.oracle.com/javase/tutorial/information/glossary.html field ?: A data member of a class. Unless specified otherwise,a field is not static. member : A? ?or? ?of a class. Unless specified otherwise,a member is not static. method :[详细]
-
3 Ways of JDK Source Code Attachment in Eclipse---reference
所属栏目:[Java] 日期:2020-12-14 热度:200
You wanna look at a JVM class while you are coding and you cannot. Here is the solution. First of all,??your related JDK source code files unless you already have it. In general,source code is included in the JavaSE bundle and located unde[详细]
-
java.util.concurrent.Exchanger应用范例与原理浅析--转载
所属栏目:[Java] 日期:2020-12-14 热度:131
一、简介?? Exchanger是自jdk1.5起开始提供的工具套件,一般用于两个工作线程之间交换数据。在本文中我将采取由浅入深的方式来介绍分析这个工具类。首先我们来看看官方的api文档中的叙述: ??? 在以上的描述中,有几个要点: 此类提供对外的操作是同步的;[详细]
-
Java获取真实的IP地址--转载
所属栏目:[Java] 日期:2020-12-14 热度:54
div class="cnblogs_code" = request.getHeader("x-forwarded-for" (ip == || ip.length() == 0 || "unknown" = request.getHeader("Proxy-Client-IP" (ip == || ip.length() == 0 || "unknown" = request.getHeader("WL-Proxy-Client-IP" (ip == || ip.leng[详细]
-
How and Why Unsafe is Used in Java---reference
所属栏目:[Java] 日期:2020-12-14 热度:95
By? https://www.voxxed.com/blog/2014/12/how-and-why-unsafe-is-used-in-java/ Overview sun.misc.Unsafe has been in Java from at least as far back as Java 1.4 (2004). ?In Java 9,Unsafe will be hidden along with many other,for-internal-use cla[详细]
-
使用org.apache.jasper.JspC编译jsp文件--转载
所属栏目:[Java] 日期:2020-12-14 热度:189
JspC可以通过jspc.setArgs(args);设置所需参数,和使用指令进行编译相同, 使用指令编译范例: ?也可以通过调用set方法设置参数 ???? ????????String?error= ???????? ????????????JspC?jspc?=? ???????????? ????????????jspc.setUriroot( ????????????jspc.se[详细]
-
A different twist on pre-compiling JSPs--reference
所属栏目:[Java] 日期:2020-12-14 热度:155
I’ve blogged about this topic earlier and expressed my frustrations as to how web containers don’t provide good support for precompiling JSP,with the exception of. As I’ve said before,WebLogic offers?by adding a few simple snippets insi[详细]
-
解决java.sql.SQLException: Parameter number X is not an OUT
所属栏目:[Java] 日期:2020-12-14 热度:67
最近独自一个人写项目,孤军奋战的程序猿可真伤不起! Java 调用MYSQL带输入输出参数存储过程时如题错误:java.sql.SQLException: Parameter number X is not an OUT parameter(X 表示某个数字) 按照惯例,立刻在谷歌搜以上错误,得到的答案都是在如??所说[详细]