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

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.

主站蜘蛛池模板: 乐陵市| 罗源县| 定西市| 浙江省| 定州市| 正蓝旗| 灵川县| 夏津县| 新和县| 黄石市| 呼伦贝尔市| 东光县| 曲松县| 新疆| 宽城| 湛江市| 辽中县| 罗平县| 安新县| 湘阴县| 温泉县| 宾川县| 洪泽县| 平远县| 青海省| 五寨县| 会昌县| 平南县| 武鸣县| 巴东县| 毕节市| 合川市| 安乡县| 信丰县| 务川| 牙克石市| 仁怀市| 泸溪县| 石城县| 鄂伦春自治旗| 丹东市|