@ 目录 提出一个需求 解决方案: 使用SpringSecurity进行解决 SpringSecurity和SpringBoot结合 1. 首先在pom.xml中引入依赖: 2. 配置用户角色和接口的权限关系 3. 配置用户名和密码 4.进行测试 总结: 本教程是基于SpringMVC而创建的,不适 ...
分类:
编程语言 时间:
2020-05-11 15:25:04
阅读次数:
75
from django.db import models # Create your models here. class Author(models.Model): nid = models.AutoField(primary_key=True) name=models.CharField( ma ...
分类:
Web程序 时间:
2020-05-11 13:31:26
阅读次数:
65
# Author:BeeLe# -*-coding:utf-8-*-import osimport randomimport timefrom time import sleepimport pywin32_system32from selenium import webdriverfrom sel ...
分类:
编程语言 时间:
2020-05-10 23:23:42
阅读次数:
83
# Author:BeeLe# -*-coding:utf-8-*-# 生成身份证号码主程序import urllib.requestimport requestsfrom bs4 import BeautifulSoupimport reimport randomimport timeimport ...
分类:
编程语言 时间:
2020-05-10 23:21:40
阅读次数:
88
# Author:BeeLe# -*- coding: utf-8 -*-import randomdef create_phone(): # 第二位数字 second = [3, 4, 5, 7, 8][random.randint(0, 4)] # 第三位数字 third = {3: rando ...
分类:
编程语言 时间:
2020-05-10 23:11:06
阅读次数:
85
```javaimport java.util.concurrent.atomic.AtomicInteger;/** * @author zerodsLyn * created on 2020/5/10 */public class MultiThreadSerialPrint { private... ...
分类:
编程语言 时间:
2020-05-10 19:38:56
阅读次数:
98
__iter__()将对象转换为可迭代对象,__next__()返回实现迭代 #_*_coding:utf-8_*_ __author__ = 'Linhaifeng' class Foo: def __init__(self,x): self.x=x def __iter__(self): ret ...
分类:
其他好文 时间:
2020-05-10 19:32:08
阅读次数:
63
#__author__:Kelvin #date:2020/5/10 11:37 import time from multiprocessing import Process def son1(): while True: print('--> in son1') time.sleep(1) de ...
分类:
系统相关 时间:
2020-05-10 12:36:46
阅读次数:
70
import java.util.ArrayList; import java.util.List; /** * 使用stream流的方式过滤和遍历集合 * @author wukefan * */ public class Test { public static void main(String ...
分类:
其他好文 时间:
2020-05-10 01:44:32
阅读次数:
260
1.学生类 package com.qfedu.student.entity; /** * 学生类实体 * * @author GGGXXC * */ public class Student { private int id; private String name; private int ag ...
分类:
其他好文 时间:
2020-05-10 01:11:03
阅读次数:
63