Servlet filter

... 过滤器 问题: When setting the decoding character set, the following code appears in multiple servlets. Requirements: I want to avoid duplicate code request.setCharacterEncoding("utf-8"); 1. Concept Filter Filter Requests (responses) can be filtered Request--> Filter 1 --> Filter 2 --...


Android knowledge point

... Java knowledge point constructor / destructor finalize () final Context Object Application finally final means that no new subclass can be derived, can not be inherited as a parent class. Compile javac test.java, run java test arg0 arg1 ... try...catch...finally execute logic: finally...


The java exception system and the exception capture

... java exception is an error that occurs during the running of the program. Java treats exceptions as objects and defines a base class java.lang.Throwable as the superclass for all exceptions. Many exception classes are defined in the Java API, divided into two major classes, error Error...


Java multi-threaded collaboration CountDownLatch

... @DownLownLatch is a commonly used class of synchronous multi-threaded behavior under the current package. A count value needs to be entered in the construct. When this value is not zero, the thread executing await() will block, the thread Each time the countDown() method is executed,...


Spring's mind map makes Spring no longer difficult to understand

... Spring Spring is an open source framework created to solve the complexity of enterprise application development. One of the main strengths of the framework is its layered architecture, which allows you to choose which component to use while providing an integrated framework for J2EE...


Replace a class file to restart the tomcat program does not respond

... 环境: linux, tomcat7, jdk1.7, spring phenomenon: Replace a class separately, restart tomcat, normal startup, log not Error reporting; request interface, log does not respond, the interface returns 404. Conclusion: The replacement class is 1.8 compiled, and is inconsistent with the server...


Install Gradle

... 1. Development Environment (1)Java: JDK8 (must be JDK or JRE7 or above, use java -version to view the current computer java version) (2) Operating System :Windows 7 2. Installation Steps (1)Download the latest Gradle compression package Gradle official website: https://gradle.org/...


Spring source Projects

... Tudu Lists: is a schedule (todo list) management J2EE application. It is based on JDK5.0, Spring, Hibernate, and DWR AJAX framework. Tudu Lists is also a simple but effective project management tool. Alfresco Content Management: Alfresco is an open source, open standards enterprise...


Lecture 3 What is the difference between final, finally, and finalize?

... final can be used to modify classes, methods, and variables. They have different meanings. nal-modified classes can not inherit extensions. Final variables cannot be modified, and final methods cannot be rewritten. (override). Finally is a mechanism that Java guarantees that the key...


Java for Web study notes (one for one) Spring security preparation (2) Authorization

... access scope and permissions are authorized. Principals and Identities In terms of Java, it is convenient to use java.security.Principal . The Principal will contain at least the authenticated user identity, such as the username, and possibly other information. In addition, the user's...