/////////////////////////////////////////////////////////////////2. How to use NSLogNSLog is a method provided in the Cocoa frameworkDefinition of NSLogNSLog defined in NSObjCRuntime.hBasically, NSLog is much like printf, which also outputs the results in the console. The difference is that the formatted character passed in is the NSString object, not the chat * string pointer//Main.mHello World//Created by Angel on 15-7-14.Copyright (c) year Angel. All rights reserved.//#import int Main (int ar
Ph525.4x the second week of the content around the operation of the Grange class and the use of annotation for data correlation two topics unfold, and show a few more "dazzle" features. As a result of a wide range of information, so notes for future reference.The demonstration data for this course are CHIP-SEQ experimental data, with a background of a gene fragment bound by esrra (estrogen related receptor alpha) in human hepatocytes (cell line:hepg2 and GM12878).Before displaying the data opera
: The requested resource temporarily resides in a different URI. The browser handles the 307 status with the same rules as 302. The 307 state is added to HTTP 1.1 because many browsers still perform the wrong turn when receiving a 302 response, even if the original message is post. It is only assumed that the browser will redirect at the post request only when the 303 response is received. The purpose of adding this new status code is clear: When the
header, and the browser should automatically access the new URL.
302
Found
Similar to 301, but the new URL should be treated as a temporary alternative, rather than permanent. Note that the corresponding status information in http1.0 is "Moved temporatily ".When this status code appears, the browser can automatically access the new URL, so it is a very useful status code.Note that this status code can be replaced with 301 sometimes. For example, if the browser mistakenly re
similar to 301, but the new URL should be treated as a temporary replacement, not a permanent. Note that the corresponding status information in HTTP1.0 is "Moved temporatily". When the status code appears, the browser can automatically access the new URL, so it is a useful status code. Note that this status code can sometimes be used with 301 substitutions. For example, if the browser mistakenly requests Http://host/~user (the trailing slash is missing), some servers return 301, and some retur
location domain of the response. Unless this is a HEAD request, the response entity should contain a hyperlink to the new URI and a short description. If this is not a GET or HEAD request, then the browser disables automatic redirection unless the user confirms it, because the requested condition may vary. Note: Although the RFC 1945 and RFC 2068 specifications do not allow the client to change the method of the request during redirection, many existing browsers treat the 302 response as a
Official statement
List of HTTP status codes
301 Moved Permanently
#This and all future requests should be directed to the given URI.[23]
302 Found
#This is an example of industry practice contradicting the standard. The HTTP/1.0
Specification (RFC 1945) required the client to perform a temporary redirect (the
Original describing phrase was "Moved Temporarily"),[24] but popular browsers
Implemented 302 wit
ContentThere is no new content, but the browser should reset what it displays. Used to force the browser to clear form input 206 Partial contentThe client sent a GET request with a range header and the server completed it multiple ChoicesThe documents requested by the customer can be found in multiple locations that are listed in the returned document. If the server wants to make a preference, it should be indicated in the location answer header. 301 Moved PermanentlyThe document requested by t
ContentThere is no new content, but the browser should reset what it displays. Used to force the browser to clear form input 206 Partial contentThe client sent a GET request with a range header and the server completed it multiple ChoicesThe documents requested by the customer can be found in multiple locations that are listed in the returned document. If the server wants to make a preference, it should be indicated in the location answer header. 301 Moved PermanentlyThe document requested by t
status information in HTTP1.0 is "Moved Temporatily ". When this status code appears, the browser can automatically access the new URL, so it is a very useful status code. Note that this status code can be replaced with 301 sometimes. For example, if the browser mistakenly requests http: // host /~ If the user (with a slash missing), some servers return 301, and some return 302. Strictly speaking, we can only assume that the browser will automatically redirect only when the original request is
Springboot uses the validation framework validation example,
In the B/s system, most http request data is verified on the client. This is also for the sake of simplicity and user experience. However, in some systems with high security requirements, server verification is indispensable.
Spring3 supports the JSR-303 verification framework, JSR-303 is a sub-specification in Java EE 6, called BeanValidation, th
Similar to 301, but the new URL should be treated as a temporary replacement instead of permanent. Note that the corresponding status information in HTTP1.0 is "Moved temporatily". When the status code appears, the browser can automatically access the new URL, so it is a useful status code. Note that this status code can sometimes be used with 301 substitutions. For example, if the browser mistakenly requests Http://host/~user (the trailing slash is missing), some servers return 301, a
slash is missing), some servers return 301, and some return 302. Strictly speaking, we can only assume that the browser will automatically redirect only if the original request is get. See 307.
"303″: See other (View other locations) is similar to 301/302, except that if the original request is post,location the redirect destination document specified by the header should be fetched via get (HTTP 1.1 new).
"304″: Not Modified (unmodified) The req
, bindingresult result(Bindingresult result must be immediately behind @modelattribute)the difference between @ModelAttribute and @valid@ModelAttribute is used to map/bind a a method parameter or method return type to a named model attribute. See @ModelAttributes JavaDoc. This is a Spring annotation.@Valid is a annotation that marks a object for JSR-303 bean validation. See @Valids JavaDoc. It is part of the Java EE 6, but I think Hibernate have an ea
[516: 303] str object: AAA, address: 0x10000105809:28:18. 579 Prototype_Demo [516: 303] strCopy object: AAA, address: 0x10000105809:28:18. 580 Prototype_Demo [516: 303] strMCopy object: AAA, address: 0x10010af70
2. In what scenarios do I use the prototype? (Where)
1. The object type must be determined at runtime.
2. a copy of an object in a certain state is req
elsewhere. The new URL is provided in the Location header, and the browser should automatically access the new URL.302 Found
Similar to 301, but the new URL should be treated as a temporary alternative, rather than permanent.303 See Other
Similar to 301/302, the difference is that if the original request is POST, the redirection target document specified by the Location header should be extracted through GET304 Not Modified
The client has a buffered
The first thing to say is what is called validator:Validator is a validator that validates data received in the background and verifies the data.SPRINGMVC Server Authentication is available in two ways, one based on the validator interface and one using the Annotaion JSR-303 standard.1. Validation using the Annotaion JSR-303 standardUsing this need to import a package that supports the JSR-
, client can not reset view
205 Reset Content
Consistent with 204 response, but requires client reset response view
206 Partial content
A partial response, a breakpoint continuation, or a large file chunk pass is the response header
3.300 ~ 399 REDIRECT Status code
Status code
Description
Multiple Choices
The requested resource has a selection of feedback information, redirected based on the header meta-informat
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.