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

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.

主站蜘蛛池模板: 恩平市| 贵阳市| 花莲市| 绥芬河市| 台东县| 青阳县| 宁国市| 新泰市| 曲水县| 大埔区| 时尚| 梓潼县| 从江县| 太白县| 来安县| 绍兴县| 襄汾县| 龙门县| 香港 | 镇宁| 资兴市| 泰州市| 繁昌县| 阳原县| 洪湖市| 高安市| 遵义县| 交城县| 建始县| 博湖县| 建瓯市| 湘潭县| 嘉鱼县| 德钦县| 罗平县| 长顺县| 涪陵区| 新河县| 昌都县| 涡阳县| 秦皇岛市|