目錄
前端
form 表單
<form action="URL" method="post/get" accept-charset="服務器的編碼,出現亂碼時有用">
<div class="textarea">
<textarea name="artical" placeholder="你可以在這裏寫東西"></textarea>
<input type="hidden" name="這裏是隱藏的" value="123456">
<input type="submit" value="提交">
</div>
</form>
ajax
異步的向服務器請求,一般使用jQuery
詳見:http://jquery.cuishifeng.cn/
頁面編碼
使用傳統Servlet開發時會出現頁面顯示亂碼的情況
這時需對jsp,或html指定編碼
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
後端
SpringBoot
@Controller
Restful 接口註解
@Service
業務層
@Repository
DAO層
@Bean
構建一個實體,@Autowired 進行使用
WebService
有cxf、axis