This article mainly from two aspects of the Android volley framework of the use of the method to explain, the specific contents are as follows
First, the network request
1.get Mode request data
1 Create a request queue
requestqueue
Reprint Please specify source: http://blog.csdn.net/xiaojimanman/article/details/43195045This blog mainly introduces the Parseutil class and the Parserequest class, because these two classes are relatively simple, so there is no case
Filter chain definition:
[Html].../Pages/User/create. do * = perms [User: create]...
.../Pages/User/create. do * = perms [User: create]...The meaning of this configuration is: The Request Path such as/pages/User/create. do * requires authentication
Paging is complicated when I first wrote it myself. Most pages on the network are relatively mature paging space.CodeSometimes I really don't understand it. Recently I used mvc3 to view data by page.
1. Basic paging parameters: pagesize, pageindex,
Instead of behind closed doors, it is better to start the original, import, free Ferrari. --Wang XinNot much to say nonsense, directly on the code.ParamutilParamutil and Getterutil are Liferay's most important helper classes.
Paramutil use:
It is more efficient to use stored procedures on SQL Server pages.Create proc p_show
@ Querystr varchar (8000), -- table name, view name, query statement
@ Pagesize Int = 10, -- size of each page (number of rows)
@ Pagecurrent Int = 1, -- the page
Reference article: 1. http://www.ibm.com/developerworks/cn/java/j-lo-spring-utils1/2.spring Source CodeWebutilsThe webutils in the Org.springframework.web.util package is a very useful tool class that provides an easy-to-use proxy approach to many
Get and POST requests are different:
1, to the server to pass the amount of data:
Get up to 2k
Post is not limited in principle, php.ini is limited to 8m
2, the transmission of data in a different form:
Get passes parameters in the form of a request
GoHttp://blog.sina.com.cn/s/blog_6e8b46e701014drc.htmlHttp://blog.sina.com.cn/s/blog_6e8b46e701014dtu.html. htaccess is a very powerful distributed configuration file for Apache servers. The correct understanding and use of. htaccess files can help
Java responsibility chain model and project application, and java liability Project Application1. Preface
The last time we learned about the design of the java responsibility chain model, we will show you the practical application of the
Objective
The browser accesses the Web page through the HTTP protocol, the browser sends a request, and the server returns a result. The server is a passive receive request, if you want to reverse, the server actively send information to the
It is more efficient to use stored procedures on SQL Server pages.The following stored procedure is found in the SQL area.
Certificate -------------------------------------------------------------------------------------------------------------------
Apache mod_rewrite Learning (1)
Chelong has long written an article about how to use the mod_rewrite module to hide dynamic pages in the background using links in the form of static pages.The rewrite module of Apache provides a rule-based rewrite
Spring WebUtils source code parsing
2. spring Source CodeWebUtilsAt org. springframework. web. the WebUtils In the util package is a very useful tool class. It provides easy-to-use proxy methods for many Servlet APIs, reducing the complexity of
1, the database of MySQL, a total of 3 tables, a user table users, a friends list friend and a message form messages.1 User table UID primary key automatically generated userName nickname userpwd password usersex
How does Java get the client IP?Here are a few of the methods I've summed up:/** * Get client IP address (can penetrate proxy) * * @param request * @return * * Public StaticStringgetremoteaddr(HttpServletRequest request) {String IP =
This article is the author studies "Javaweb Introduction Classics" a book to tidy up the reading notes, only for the study and the reference. If you have related copyright issues, please contact the author in time
Overview of Struts 2
One, Java get server IP (go to: https://www.cnblogs.com/george93/p/6306579.html)//method One, is also the simplest one. String server_ip =inetaddress.getlocalhost (). Gethostadress (). toString ();//Method Two:/*** Get server IP address *@return
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.