官术网_书友最值得收藏!

Step 9—JSP creation

Our home page is a very simple JSP file, as shown in the following code snippet. This JSP just displays a message that we have constructed in our HomeController class:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Spring Security</title>
</head>
<body>
<h1>Spring Security Sample</h1>
<h2>${msg}</h2>
</body>
</html>

This is now the base Spring MVC application, and with this we will try to set up various authentication mechanisms.

主站蜘蛛池模板: 望谟县| 威远县| 乐昌市| 桐乡市| 光泽县| 阿克苏市| 桦甸市| 温泉县| 克东县| 宁海县| 沁阳市| 华蓥市| 加查县| 会东县| 盐源县| 雅江县| 新安县| 蓬莱市| 高密市| 海宁市| 灌云县| 绥德县| 丽江市| 子洲县| 邻水| 莒南县| 平江县| 都昌县| 招远市| 和政县| 航空| 黑水县| 绥化市| 达尔| 淅川县| 鄂托克前旗| 昭觉县| 东乌珠穆沁旗| 五家渠市| 惠来县| 张家口市|