(path =
"/demo"
)public
class
hellocontroller
}
href
="demo/hello"
>
helloa
>
(
"/requestparam"
)public string testrequestparam
(@requestparam
(name =
"name"
, required =
false
) string username)
href
="anno/requestparam?name=dudu"
>
requestparama
>
(
"/requestbody"
)public string testrequestbody
(@requestbody string body)
action
="anno/requestbody"
method
="post"
>
姓名:type
="text"
name
="name"
/>
>
年齡:type
="text"
name
="age"
/>
>
type
="submit"
value
="提交"
>
form
>
(
"/pathvariable/"
)public string testpathvariable
(@pathvariable
(name =
"sid"
) string id)
href
="anno/pathvariable/1208"
>
pathvariablea
>
(
"/requestheader"
)//value的值是請求頭中的key值
public string testrequestheader
(@requestheader
(value =
"accept"
) string header)
href
="anno/requestheader"
>
requestheadera
>
(
"/cookievalue"
)//value屬性的值是cookie的key值
public string testcookievalue
(@cookievalue
(value =
"jsessionid"
) string cookie)
href
="anno/cookievalue"
>
cookievaluea
>
(
"/modelattribute"
)public string testmodelattribute
(user user)
@modelattribute
public user show
(string name, integer age)
action
="anno/modelattribute"
method
="post"
>
姓名:type
="text"
name
="name"
/>
>
年齡:type
="text"
name
="age"
/>
>
type
="submit"
value
="提交"
>
form
>
(
"/modelattribute"
)//取出show中的du對應的user
public string testmodelattribute
(@modelattribute
("du"
) user user)
@modelattribute
public
void
show
(map
map)
action
="anno/modelattribute"
method
="post"
>
姓名:type
="text"
name
="name"
/>
>
年齡:type
="text"
name
="age"
/>
>
type
="submit"
value
="提交"
>
form
>
@sessionattributes
(value =
)//將du=費渡存入到session域物件中了
public
class
annotationcontroller
implements
serializable
}
href
="anno/sessionattributes"
>
sessionattributesa
>
(
"/getsessionattributes"
)public string getsessionattributes
(modelmap modelmap)
href
="anno/getsessionattributes"
>
getsessionattributesa
>
(
"/deletesessionattributes"
)public string deletesessionattributes
(sessionstatus status)
href
="anno/deletesessionattributes"
>
deletesessionattributesa
>
openGL一些概念01
頂點資料 頂點資料是一系列頂點的集合。乙個頂點 vertex 是乙個3d座標的資料的集合。而頂點資料是用頂點屬性 vertex attribute 表示的,它可以包含任何我們想用的資料。但是簡單起見,我們還是假定每個頂點只有乙個3d位置和一些顏色值組成的。圖元 為了讓opengl知道我們的座標和顏色...
tensorflow 一些概念01
1 平方差 a b a b a b 2 均方差 方差3 交叉熵 均方差 交叉熵 方差 4 5 6 資料 方差是各個資料與平均數之差的平方的和的平均數,公式為 s 1 n x x x x x x 其中,x表示樣本的平均數,n表示樣本的數量,xi表示個體,而s 2就表示方差。平方差 a b a b a ...
SpringMVC框架的一些底層
類結構圖 首先看一下這個結構圖,dispatcherservlet是springmvc的核心控制器,他遵循了servlet規範.雖然現在是乙個高大上的框架,但是這三個重要方法肯定是不能忽視的.第一步 初始化位於httpservletbean當中的init 方法,因為他是對接servlet容器體系中傳...