Static cache is different from OutputCache. It is applicable to websites with a large number of accessible pages (such as news sites ). You need to know that our website will be inspected by many silly spider and Water Filling Machine with low IQ
1.2.4 Java Annotation Abstract
(This article introduces the dependency injection container Spring and the source code analysis of JUnit)Java Annotation (Annotation)
Java. lang. annotation. AnnotationIs the parent interface of all Java annotations.
To implement dynamic proxy through JDK, classes with proxy requirements (called implementation classes) must implement interfaces. The dynamic proxy can segment the logic and implement the logic through the proxy generation. Other operations can be
If someone asks you how to call a private method of a class or access a private member of a class, if you do not know the reflection, you will tell him that it is not possible. But with reflection, this is all possible. I sometimes think, since
AboutSystem.Convertthose thingsObjectiveDo not know what , today's waist pain is not , the pain of standing up , this afternoon suddenly hurt up , Alas , This is the body to break the rhythm Ah , coupled with their own VAX probationary period to ,
Public Interface Animalinterface { publicvoid Cry ();} Public class Implements Animalinterface { publicvoid Cry () { // TODO auto-generated method Stub System.out.println ("Crying");} } Public
The content of ajaxtest.htm on the front page is as follows: The code is as follows:Copy code This Page interacts with the background in different ways Set up a Handler. ashx page in the background as follows: The code is as follows:Copy
JAVA learning lesson 64th-reflection mechanism
The Java reflection mechanism is in the running state. For any class, all attributes and methods of this class can be known,Any method and attribute of an object can be called. This dynamically obtained
One of the main application scenarios of dynamic proxy is to implement AOP-intercept method calls and add your own preprocessing, post-processing, or around und processing.
I implemented support for these interceptions in esbasic. emit.
First, we
1. for Tomcat: Memory leakage prevention listener jrememoryleakpreventionlistener is working. By default, the system. GC is triggered every hour.
Class clazz = Class. forname ("Sun. Misc. GC ");
Method method = clazz. getdeclaredmethod
Insert a system service (such as Logging and Security) unrelated to the business logic in a service process. This logic is called Cross-cutting concerns, the Cross-cutting concerns is designed as an object. This special object is called Aspect ),
Java proxy mode ()
1. Proxy ModeThe proxy mode provides a proxy for other objects to control access to this object. In some cases, a client does not want or cannot directly reference another object, and the proxy object can play a mediation role
Problem:
When using Maven to build a Java open-source project, bufferoverflowexceptio is sometimes encountered.N exception (see the exception details below ).
Is it a bug?
There are JDK 1.4.2 and JDK 1.6.0 bug reports on Sun's website. In fact, this
In the SSL bidirectional handshake configuration for Tomcat, APR is enabled by default in version 6.0.33 (APR is a portable library accessed through JNI, which can improve Tomcat performance and scalability ), therefore, an exception is reported
Recently, we developed a Web service tool that uses a little bit of code generation technology.1 .. there are two main types of Web Services, asmx web service and WCF web service. the latter is the enhanced feature version of the former. for example,
1. JDK can generate a proxy for the instance that implements the interface. Therefore, first create an interface.
// Interface personPackage cn.edu. HLD;
Public interface person{Public void Info ();Public void run ();}2. To implement dynamic proxy
Today, I learned some Java reflection mechanisms and made a simple record.
In my understanding, some object-related information is obtained during running:
The "class" type of the object, which member variables, which methods, value of member
// Obtain the type information
// If you call another DLL
// System. reflection. Assembly ASMB = system. reflection. Assembly. loadfrom("DLL name ");
// Type T = ASMB. GetType ("Class Name ");
// If other DLL is not called
System. type T =
The ANR window is generated for a variety of reasons.ProgramThe main thread is blocked because of Io read/write or network congestion, external storage devices are monopolized, or the system load is too high (that is, it is not a problem of
In the previous article, "Introduction to the Silverlight-Based Simplified Framework", the data request of Silverlight needs to be set up with WCF, WebService, or WebClient, and the intermediate data needs to be serialized and deserialized, or it
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.