Because the company wants to use Java development platform, so now transfer to Java. The platform is applied to the spring framework, so learn spring first.
Spring MVC:
@RequestMapping
Property:
Value: Refers to the actual address of the request
Method: Several methods of interacting with the server; Get,post,put,delete, etc.
Consumes: Specifies the requested type of processing such as: Text/html;application/json;
Produces: Specifies the type of content returned, which is used only if the accept in the request header contains the specified type, such as one found on Baidu:
Accept: "image/png,image/*;q=0.8,*/*;q=0.5".
Params: Specifies that the request contains a reference to the parameter before it is processed by the method and I understand that the parameter must be passed in
Headers: The specified request contains some headers, so that the method processing requests, the following is the Baidu copy down the header content. For example, perhaps we can specify the value of User-agent as "mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) gecko/20100101 firefox/46.0 "to continue processing the request. This prevents some users from impersonating the request (as I understand it)
Host: "Sp3.baidu.com"
User-agent: "mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) gecko/20100101 firefox/46.0 "
Accept: "image/png,image/*;q=0.8,*/*;q=0.5"
Accept-encoding: "gzip, deflate, BR"
Referer: "https://www.baidu.com/s?wd=http%20get&rsv_spt=1&rsv_iqid=0xcbbe151f00022bad&issp=1&f= 8&rsv_bp=1&rsv_idx=2&ie=utf-8&rqlang=cn&tn=baiduhome_pg&rsv_enter=0&oq=http%20get &rsv_t=a68ctx91liykp2g9z5ipw2wkwfmg%2bneftwunenykludlj8kzohgybcppmnxrkqzhrndh&rsv_pq=d29f4a7800033056 "
Cookie: "Baiduid=2eb099183dc5bca26992e801fda81d4f:fg=1; bidupsid=2eb099183dc5bca26992e801fda81d4f; pstm=1464718902; h_ps_pssid=1429_18241_20076_17001_15460_12422_20252; bdsfrcvid=iydsjeccxg3rc6rr_s5bkk5tq9ssubwwd2tp3j; h_bdclckid_sf= Trk8oi-xjcvjd4-k247hhn8thmt22-usfc0lqhch0howsio1-nrc0l4y2t5v2po85nvmlbch3tt5edbxduc0djb-da8fjtnj-d6206uatrcoh6rnhpf3e5jdk P6-3mjo3b7ohrk5lf75hxjhe5avhjd0jb6oqprj0kjeohfltk-khi-6jjrb5nbhhmr-bpcxhd7ywcvvmlb5or5jln7ndpddjr5nybttke3w_ 4blf4o5sjo55p8k3boyyg62btt_jnaqvc3p; bduss= Mvszejxmfb6vnr6szj-dgplqtngmnfjv0rhu3f4re9uzu9jzfblenllogrrsgxyqvfbqufbjcqaaaaaaaaaaaeaaac1twhj0ana77dxu6i7qmyrsncaaaaaaa AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB2ZUVCDS1FXD; Bdrcvfr[fewj1vr5u3d]=i67x6tjhwwyf0 "
Connection: "Keep-alive"
Transfer to Java