Findbugs Quick Guide

1. Use the mm command to compile your own modules2. decompress the package;3, cd./qatools/findbugs-2.0.2/bin4. Modify exec_findbugs.sh to modify the directory to be checked. Modify the first line:./findbugs-maxHeap 2048-high-textui/home/wuhe.

Get current date

Import java. util .*;Public class D{Public static void main (String [] abc){Int y, m, d, h, mi, s;Calendar cal = Calendar. getInstance ();Y = cal. get (Calendar. YEAR );M = cal. get (Calendar. MONTH );D = cal. get (Calendar. DATE );H = cal. get

CoreJava learning 5-generic

Java generic The generic mechanism is a feature introduced by 1.5 and is essentially a parameterized type. In the definition of classes, interfaces, and methods, the Data Type of the operation is specified by the input parameter. Can be used in

Garbled characters occur when a Chinese field is entered.

When we enter a Chinese field, garbled characters may occur in the database and solutions: Cause: the default encoding we normally use is not a UTF-8 Solution: 1. When we create a JSP page, set Add a contentype attribute and change charset to UTF-

Filter in Java

Filter Operating Principle When the client sends a request for Web resources, the Web server checks based on the filtering rules set in the application configuration file. If the customer request meets the filtering rules, the client

Code pasting, XML Learning 1

XML file: DomParse. xml tagged text corresponding character: & #41; & #62; & #63; Java file: DomParse. java Import org. w3c. dom. *; import javax. xml. parsers. *; import java. io. *; public class DomParse {public DomParse () {try {//

Differences between passing basic data type values in java and passing array reference variables to methods

When I first entered the world of java, I found that it was so beautiful. It's still a long journey. I hope everyone can continue. For the first time I wrote a blog, I would like to give you some advice on some shortcomings.650) this. width = 650;

A question about Cobar

A problem found during the Cobar test is that after a session executes lock table xxx write, other sessions, including the session, cannot query other tables, until a session executes the unlock tables statement, for example: Session1: Mysql> create

Read the properties File

650) this. width = 650; "src =" http://img1.51cto.com/attachment/201309/141742327.png "title =" QQff2.png "alt =" 141742327.png"/> Public class ReadProtertise { Private static final String PROPERTIES_FILE = "/com/config/db_config.properties ";

Execution sequence of the parent class subclass of the member variable Constructor

Vague concepts of written test questions: Subclass member variable, subclass static member variable, subclass constructor, parent class member variable, parent class static member variable, execution sequence of parent class constructor. Output

Java Regular Expression Verification

Public class Regex {/*** check whether email input is correct * correct format: username @ domain * @ param value * @ return */public boolean checkEmail (String value, int length) {return value. matches ("\ w + ([-+.] \ w +) * @ \ w + ([-.] \ w + )*\

Enable a piece of code as the project starts

Only three steps are required: 1. Create a servlet for your code and rewrite the init () method. The content is the code or method interface to be executed; 2. configure it in the project's web. xml file. (For example, if the servlet name is

HttpConnection simple learning

We sometimes use httpClient when calling a remote interface. Of course, we can also use a class that comes with java to perform this operation. Here is a simple example: Package com. hanchao. test; import java. io. bufferedReader; import java. io.

Spring quartz scheduled task

1: first, make sure that a spring web project can run. The spring version is 3.1, and the usage of 3.0 is somewhat different. The quartz version is 2.0.2. Throughout to run in addition to spring essential package but also quartz-all-2.0.2.jar, slf4j-

A review of Java knowledge for beginners

Today is the second day of learning Java. It is not too bad. Let's review what we have learned today. 1. Eight types: Boolean, int, long, short, type, float, double, and char; 2. Pay special attention to the long and float types; 3. Sequence

In Maven, the difference between-DskipTests and-Dmaven. test. skip = true

When mvn package is used for compilation and packaging, Maven executes the JUnit test case in src/test/java. Sometimes, to skip the test, the parameters-DskipTests and-Dmaven are used. test. skip = true, the main difference between the two

Extended use of CAS learning certification (1)

CAS is flexible in terms of authentication. In the configuration file deployerConfigContext. xml of the CAS server, you can define any authentication methods you want, such as JDBC authentication and LDAP authentication. In addition, multiple

Spring core notes (1)

Technorati flag: spring, java I. Container Overview 1. Metadata Configuration Metadata configuration can be divided into three methods: the simplest and most direct method is to use the xml configuration file, and the other two are spring annotation

Summary of Struts2 Error filterStart exceptions

Today, a netizen asked polaris to help solve some jqGrid problems. When polaris deploys and runs its project, it throws a Struts2 Error filterStart exception, that is, tomcat cannot be started at all. Since polaris encountered this problem when he

Advantages and disadvantages of FreeMarker you don't know

First, let's give a brief introduction to FreeMarker. FreeMarker is a Java template engine that generates text output based on the template. FreeMarker has nothing to do with the Web Container, that is, when the Web is running, it does not know

Total Pages: 6206 1 .... 6159 6160 6161 6162 6163 .... 6206 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.