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

Base project setup

Apart from the actual authentication mechanism, many aspects of the application are quite similar. In this section, we will set up the example and then cover the specific authentication mechanism in detail.

We will be using the default Spring Security DB schema against which we will authenticate the user. We will create a fully fledged Spring MVC web application, with each component being created from scratch. Creating a sample Spring Security application using Spring MVC with the help of Spring Boot is very easy. The application will function through many things that are hidden away from developers. But in this case, we will be creating this application component by component so that you can see the actual code with which a web application that is built on Spring MVC can be secured.

The default DB schema used by Spring Security is shown in the following diagram. However, you can customize it the way you think it is suitable for your application. We will be using the Users and Authorities tables for our setup here:

Figure 04: Spring Security default database schema

Let's now start developing our sample application.

主站蜘蛛池模板: 永德县| 桐庐县| 泸定县| 泸定县| 抚远县| 东乌| 太保市| 长寿区| 淮安市| 无极县| 普兰县| 四子王旗| 西贡区| 桃源县| 常州市| 三亚市| 寻乌县| 庆阳市| 鄂托克旗| 鹤峰县| 台湾省| 虎林市| 新野县| 龙南县| 鹤壁市| 南岸区| 车致| 长寿区| 望城县| 潢川县| 仙游县| 云霄县| 兴隆县| 晋宁县| 马尔康县| 石渠县| 沅陵县| 济宁市| 咸宁市| 霍山县| 英超|