The things that I learned today

Source: Internet
Author: User

When you write a reference structure in a class, it is best to write its parameterless structure, because it has a hidden parameterless construct by default, but when you write a reference structure, its parameterless structure is captured, and the wood has it. So you have to write it manually.

When writing SQL query statements in Java, be sure to bring the conditions, where a certain =?

The URL of the linked database, be sure to remember to change its library name

In a method, if the type is void, the wood has a return value, and the Int,boolean is returned according to its type.

Struts2 must inherit the Actionsupport.

And when using STRUTS2, the Web configuration should be written

<filter-class>
Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>

Because it is said that this is going to start the interceptor (although I didn't use it)

All right, here's the end of the summary today!

Not eating is hungry ...

The things that I learned today

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.