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

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.

主站蜘蛛池模板: 盐山县| 山丹县| 明溪县| 南部县| 共和县| 昌邑市| 益阳市| 崇文区| 嘉鱼县| 屏东市| 樟树市| 依兰县| 荔浦县| 东台市| 新兴县| 大连市| 石泉县| 资源县| 新兴县| 灌云县| 房山区| 威宁| 玉林市| 韩城市| 安化县| 临湘市| 沧源| 库尔勒市| 江油市| 汾西县| 广东省| 勐海县| 岑巩县| 山丹县| 柯坪县| 郎溪县| 永修县| 五寨县| 汉中市| 密山市| 弥勒县|