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

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.

主站蜘蛛池模板: 清新县| 都安| 双江| 梅州市| 正安县| 永兴县| 宿州市| 澜沧| 崇阳县| 高要市| 团风县| 务川| 丰县| 咸阳市| 高安市| 富民县| 商都县| 衡阳县| 阜新| 安溪县| 米脂县| 通道| 塔河县| 湖南省| 博乐市| 吕梁市| 金山区| 左权县| 宁阳县| 湖南省| 宜城市| 嘉祥县| 吉水县| 金门县| 盘锦市| 长乐市| 宁阳县| 南安市| 瑞安市| 克山县| 满洲里市|