security学习笔记

Java72

spring security 入门案例

  1. 创建springboot工程
  2. 引入依赖

            org.springframework.boot
            spring-boot-starter-security

2.创建controller

```java
package com.example.springscuritydemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长